Learn to study
 
Aug 29, 2005 - 12:05 PM
 
Main Menu

Online
There are 2 unregistered users and 0 registered users on-line.

You can log-in or register for a user account here.


Our Partners:
Html and CSS: CSS: The Basics - ID's and Classes ... Correct by Eric McArdle
Thursday, May 12, 2005 - 05:41 PM

Printer-friendly page Send this story to someone

Website Development

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 specific page with a specific style. If you want to be
able to make global changes to your website using only one style
sheet, you have to use....

External Stylesheets - Instead of putting all the style 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 this

{head}
{title}Webpage title{ itle}
{link rel="stylesheet" type="text/css"
href="http://www.yourdomain.com/css"}
{/head}

If you decide to use an internal stylesheet, you have to put your
css style wihin the following tags:

{style type="text/css"}
{/style}

All css or links to the external stylesheets have to go in
between the {head} tags

Now about Css Classes vs. ID's

The one major difference between a class and an id is that
classes can be used multiple times within the same page while an
Id can only be used once per page.

Note: About the Author
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




 
Login
 





 Log in Problems?
 New User? Sign Up!

Related links
· More about Website Development
· News by ovlazare


Most-read story in Website Development:
Common PHP Tasks and Questions


<< 1 2 3 >>
CSS: The Basics - ID's and Classes ... Correct by Eric McArdle | Log-in or register a new user account | 0 Comments
Comments are statements made by the person that posted them.
They do not necessarily represent the opinions of the site editor.
© WebsiteDevelopmentNews.com
Flash Templates and Web Templates