<><><>FOR EMMET<><><>
Posted: Tue Mar 23, 2010 3:18 am
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:
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 -
-Doom
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
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:.Menu{
text-align: center;
background: #000000;
}
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
But who wants to go through all of that hassle? Not me, I use stylesheets all the time. It makes life so much easier.<div style="background: #000000;"><center>*Your contents here*</center></div>
-Doom