All the articles, all the subjects!
Articles  Articles  Articles

Css: The Basics - Id's And Classes


Overall rating: (N/A)

The article "CSS: The Basics - ID's and Classes" is about css, it was written by Eric McArdle.

Css Cascading Style Sheets Two types of style sheets: Internal and External Internal - You insert your style code right into your html code. These stylesheets should only be used if you are intending to create a specfiic page with a specific style.
If you want to be able to make global chagnes to your website using only one style sheet, you have to use....
External Stylesheets - Instead of putting all the stlye code into your html code, you can create a single document with your css code and link to it within your webpages code. It would look something like that Webpage title< itle> If you decide to use an internal stylesheet, you have to put your css style wihin the following tags: All css or links to the external stylesheets have to go in between the tags Now about Css Classes vs.

ID's The one major difference between a class and an id is that classes can be used multpile times within the same page while an Id can only be used once per page. Example: ID - The golbal navigation of your site, or a navigation bar. A footer, header, etc. Only items that appaer in only one place per page. Class - Aynthing that you would use multiple times in your page, such as titles, subtitles, headlines, and the like.

Creating ID 's To craete an Id in your css, you would start with the number sign (#) and then your label of the id. Here's an example #navigation { float:left; } To insert the id in your html, you would do something like that You can also insert an id within another one like that Remember to colse the id's in order. Now, onto css classes. Creating Classes To create a class in your css, use that .Subtitle { color: #000000; } To insert the clsas into your html, do that




Write a comment
Write a comment about the article
CSS: The Basics - ID's and Classes



Top Articles Searches
Music Business Lessons From The Village People Ezine Advertising Works: Top 10 Reasons To Advertise With Ezines Increasing Site Traffic Luxury Baby Bedding - What To Look For Before You Buy Archery Fishing Tips and Techniques One Of Cancun's Best What do customers really want? Used Car Buying - 5 Steps To Success After the shot, Trailing Deer Part 1 Woodworking Beginners: Secret Tips To Start Right An Introduction to Glow Sticks Determining Your Online Ad Budget America - Is it in Bible prophecies and what can the USA expect at the second coming of Jesus Christ Specialty Advertising in C-Stores Red Bull and Vodka--What a Pair! Payment Plan Options for Home Treadmills Enjoy Your Vacations with Colorado Ski Vacation Package Buying A Computer: Processor & Memory: Affordability And Performance Buying Tips Most Profitable Adsense Money Making Tip Nokia 7380 Mobile Phone Deals – Exceptional Features at Inimitable Costs


Link To Us! Add to favorites Tell a friend! RSS Feed

Sitemap   Privacy Policy   Terms Of Service