| Web Hosting, Reseller Hosting and Web Presence Services packed with great features and first class service. |
![]() |
TOS | AUP | Privacy Policy Tue 6 January 2009 |
HOME |
WEB HOSTING |
RESELLER HOSTING |
WEB PRESENCE |
SUPPORT |
CONTACT US |
FAQ |
| Related inks
|
CSS: The Basics - ID's and Classesby Eric McArdleCss Cascading Style Sheets Two types of style sheets: Internal and External Internal - You insert your style code right into your html code. External Stylesheets - Instead of putting all the style code into {head} If you decide to use an internal stylesheet, you have to put your {style type="text/css"} All css or links to the external stylesheets have to go in Now about Css Classes vs. ID's The one major difference between a class and an id is that Example: ID - The global navigation of your site, or a navigation bar. A Class - Anything that you would use multiple times in your page, Creating ID 's To create an Id in your css, you would start with the number sign #navigation { To insert the id in your html, you would do something like this {div id="navigation"} You can also insert an id within another one like this {div id="navigation"} {/div} Remember to close the id's in order. Now, onto css classes. Creating Classes To create a class in your css, use this .subtitle { To insert the class into your html, do this {p class="subtitle"} Now, you can use the same class repeatedly in the same page I also want to tell you something about link attributes. You a { a:link { a:visited { a:hover { a:active { Of course, you can change the colors and text-decorations. This Okay, these are the basics. What I highly recommend is to go and http://www.bradsoft.com opstyle slite/index.asp It's free and is a very helpful css editor. It not only color Now, this was just a very very brief explanation of the vital Good Luck in Your Web Designing Efforts! P.S Change { and } to < and > About the Author Catagories:
|
| Home | Web Hosting | Reseller Hosting | Web Presence | Support | Contact Us | FAQ | |