Page 1 of 1

<><><>FOR EMMET<><><>

Posted: Tue Mar 23, 2010 3:18 am
by Fireboyd78
Alright dude, let me give you a quick explanation as to what CSS does, since you know jack sh*t about it.

We all know the html and body tags, so lets forget those. This is basically a "snippet" from a longer code (this is an example.)

Here is my stylesheet:
Code: Select all
.Menu{
text-align: center;
background: #000000;
}
So let's say that's my Menu stylesheet. But how do I use it? Well, I would have to "execute" it by doing this:
Code: Select all
<div class="Menu">*Your contents here*</div>

Ok, that was simple, right? Well, whatever is in side that DIV tag will have the attributes we applied earlier. But how do you do it without a stylesheet? Well, you could do it like this -
Code: Select all
<div style="background: #000000;"><center>*Your contents here*</center></div>
But who wants to go through all of that hassle? Not me, I use stylesheets all the time. It makes life so much easier.

-Doom