Introduction To Css

CSS stands for Cascading Style Sheets. Forget that for now. Really, put that term out of your mind and think about musicians, as they contain the secret to CSS, or rather, allow me to explain 90% of everything you ever need to know about CSS very quickly.

Musicians, as a rule, wear clothes. Sadly, it's true. Musicians don't walk around naked like they used to. As they have clothes (as a rule) we can also assume that they own their clothes. We can say the clothes are the musician's property. (Musicians don't uh.. steal their clothes like they used to.)

In CSS, the rule would look like this :

musician
{
clothes:type-of-clothes;
}

Yup. That's a CSS rule and looks exactly like what you will be using to make themes with. Remember, as a rule, musicians wear clothes, which is their property. Moving on…

Not all musicians are the same. They fall in several interesting (or not) classes of musicians. By defining a class of musician, we can describe the look of several musicians at once. Again, in CSS (vaguely) :

.rock-star
{
clothes:black-leather;
}
 
.folk-musician
{
clothes:flannel;
}

Note the dot in front of the class name. This shows that it is a class of musician, not a specific rock-star. In CSS, there is even a way to describe a specific musician by name. (or by id). In CSS :

#john-lennon
{
clothes:none;
}
 
#yoko-ono
{
clothes:none;
}

Doh! Well, there you have it, musicians just don't run around naked like they used to. As you go through this CSS guide, I want you to keep that image in your mind (no, not naked John Lennon and Yoko Ono, the code format!). It may seem like you have learned little (and imagined much), but I guarentee you are already halfway to a CSS expert.

page tags: css
page_revision: 0, last_edited: 1203910805|%e %b %Y, %H:%M %Z (%O ago)