CSS: The Basics - ID's and Classes

Written by Eric McArdle


Continued from page 1

Remember to closerepparttar id's in order.

Now, onto css classes.

Creating Classes

To create a class in your css, use this

.subtitle { color: #000000; }

To insertrepparttar 105167 class into your html, do this

Now, you can userepparttar 105168 same class repeatedly inrepparttar 105169 same page unlike Id's.

I also want to tell you something about link attributes. You should always keep them in this order:

a { color: #006699; text-decoration: none; font-size: 100%; }

a:link { color: #006699; text-decoration: none; }

a:visited { color: #006699; text-decoration: none; }

a:hover { color: #0000FF; text-decoration: underline; }

a:active { color: #FF0000 }

Of course, you can changerepparttar 105170 colors and text-decorations. This is just something I cut out of my code!

Okay, these arerepparttar 105171 basics. What I highly recommend is to go and download Topstyle Lite by going here:

http://www.bradsoft.com opstyle slite/index.asp

It's free and is a very helpful css editor. It not only color codes and organizes your code, but it provides you with tons of attributes that you can add to your class and id elements with just a click. They also provide a screen atrepparttar 105172 bottom to view your css code as you create it. Very useful for a free edition and I'm looking to buyrepparttar 105173 pro version soon.

Now, this was just a very very brief explanation ofrepparttar 105174 vital elements needed when structuring your css. I have a good feeling that when you download top style lite, you will learn how to use repparttar 105175 hundreds of attributes in your classes and id's

Good Luck in Your Web Designing Efforts!

Eric McArdle is the publisher of the TrafficaZine Online Marketing Newsletter which is a publication designed to assist the online marketing and/or web designing entrepreneur with the basic tools and resources that will greatly assist them in taking further steps into bettering their online business. http://www.trafficazine.com


CSS: The Basics - ID's and Classes ... Correct

Written by Eric McArdle


Continued from page 1

{/div} {/div}

Remember to closerepparttar id's in order.

Now, onto css classes.

Creating Classes

To create a class in your css, use this

.subtitle { color: #000000; }

To insertrepparttar 105166 class into your html, do this

{p class="subtitle"} {/p}

Now, you can userepparttar 105167 same class repeatedly inrepparttar 105168 same page unlike Id's.

I also want to tell you something about link attributes. You should always keep them in this order:

a { color: #006699; text-decoration: none; font-size: 100%; }

a:link { color: #006699; text-decoration: none; }

a:visited { color: #006699; text-decoration: none; }

a:hover { color: #0000FF; text-decoration: underline; }

a:active { color: #FF0000 }

Of course, you can changerepparttar 105169 colors and text-decorations. This is just something I cut out of my code!

Okay, these arerepparttar 105170 basics. What I highly recommend is to go and download Topstyle Lite by going here:

http://www.bradsoft.com opstyle slite/index.asp

It's free and is a very helpful css editor. It not only color codes and organizes your code, but it provides you with tons of attributes that you can add to your class and id elements with just a click. They also provide a screen atrepparttar 105171 bottom to view your css code as you create it. Very useful for a free edition and I'm looking to buyrepparttar 105172 pro version soon.

Now, this was just a very very brief explanation ofrepparttar 105173 vital elements needed when structuring your css. I have a good feeling that when you download top style lite, you will learn how to use repparttar 105174 hundreds of attributes in your classes and id's

Good Luck in Your Web Designing Efforts!

P.S Change { and } to < and >

Eric McArdle is the publisher of the TrafficaZine Online Marketing Newsletter which is a publication designed to assist the online marketing and/or web designing entrepreneur with the basic tools and resources that will greatly assist them in taking further steps into bettering their online business. http://www.trafficazine.com


    <Back to Page 1
 
ImproveHomeLife.com © 2005
Terms of Use