Preview
Download

Secret Service Wars
Want to Advertise here? Contact Us


Home
Forums
Awards for You
Winners
Awards Won
About Us
Past Layouts
Past Updates


Site Rules
Site FAQ
Site Staff
Credits
Link to Us
Link Exchange
Linkage
Affiliation


Latest Contest
Previous Contest
Contest Winners
Mini Contests
General Rules


100x100 Icons
64x64 Icons
70x70 Icons
AIM Icons
Archived Icons


Signatures
Buttons
Banners
Wallpapers
Enter Signs
Hiatus Signs
LJ Headers
Friends Only Banners


Div Layer
Tables
iFrames
PopUp


Brushes
Extractions
Vectors
Icon Bases
Icon Creator


HTML Tutorials
CSS Turoials
Let's Make a Layout
Graphics Tutorials
Do's and Don'ts











Bassman Themes

Linking to a CSS Class

Now if you've read the tutorial on how to make a CSS class you're probably wondering how to make it work within your page. We'll explain that here, also if you haven't read that tutorial I might recomend reading it before this, if not you can learn how to do this, but it won't do anything until you make that CSS class.
Some notes, head is the name of the class we defined in the CSS class tutorial to be used as our example. Nothing will happen with your page if you do not have the class defined, so please DO have it defined.

In your document you would use <p> to make a new paragraph, now if you add class=head you will make the tag look like this
<p class=head>
Now the paragraph will follow within our defined class until we tell it not to. By closing it with </p>
Now you can have a fancy header by surrouding your header with this
<p class=head> I'm this page's header </p>
This above example will make the "I'm this page's header" Look like the defined CSS class. On this site you can see an example of this right in the title "Linking to a CSS Class" I used the exact class "head" that we define in the tutorial for CSS classes, and so you can see how it can turn out.

Other places to link to CSS Class

While in a paragraph header is the most common place we see a class linked to we can also link to one in our <table> tag, Frames, iframes tags, and div tags. While these are not the only places that a class can be called on they are the most commonly seen places.