View Full Version : the purpose of class
newjack2002
08-02-2002, 01:55 PM
What is the purpose of the class attribute? Especially in tables and fonts. I have seen it in coding but it looks like somebody is just setting the value without ever using it again. Is there a list of predefined values for the class attribute? Or is it something that is set by the coder? How can I see what the class value is doing? Thanks.
SYP}{ER
08-02-2002, 02:26 PM
Class is for CSS.
<style type="text/css">
.classname { color: #000000; background-color: #ff0000; }
</style>
<div class="classname">Here's a div layer with black text and a red background.</div>
Useful for changing the look of a similar element accross an entire site (the purpose of CSS)
:)
I'm on MSN if you want more clarification.
aaronvvright at hotmail dot com
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.