Friday, February 04, 2005

Talk.org: CSS tips for coders: Think object oriented

Talk.org: CSS tips for coders: Think object oriented: "First time you look at a complex style sheet it tends to look really complex and ugly. However the advantage is that your html should look a lot simpler.
Objects and classes in css are actually a lot more like rubys implementation than Javas, in that you can extend your class directly within an instant. Dont worry to much about that for now.
Objects are basically tags within your html page. You can think of most of the built in tags as javas primitive type or the built in classes.
So is an object of type headline1 and

is an object of type paragraph.
Some of the built in types are more complex, such as the list constructs and forms.
You use the

tag for objects using your user defined classes in html."


No comments:

Post a Comment