.:Urban-Glam.Com:. .:Urban-Glam.Com:.
.:Home:. .:Gina:. .:Domain:. .:Exits:. .:Tutorials:. .:Myspace:. .:Portfolio:.
Classes

These are really great and I personally use them. They give you more control over what your site looks like. It can target whatever you want to change and only takes a second to do.

Let's start with an example. Lets say you have a link or just plain text on your site and you made the color of it red and bold. But let's say in your menu area you want the links and text to be black or have a border or any kind of effect you want to use.

That's what CSS classes are. While one part of your CSS targets almost everything. If you have CSS classes then you can change things around much more and it doesn't even take longer than a minute. This works with DIV layers, tables, iframes, almost anything you can think of.

So for anything you want to have a certain class you would add this code...

class="NAME YOUR CLASS"

So let's say it was a link, it would look like this in your coding...

<a href="http://URL HERE" class="CLASS NAME">LINK NAME</a>

You can name your class anything you want. Try to keep it simple and things that relate to it like header, footer, links, menu, etc.

Now, for every class you have paste this in your style.css.

.NAME OF YOUR CSS CLASS HERE {
color: black;
font-weight : bold;
font-size : 10px;
text-align : left;
border : 1px solid black; }

Just put in what codes you want to use for each different class and that is pretty much it.

< Back