[thelist] Combine CLASS attribute + STYLE attibute

John Corry webshot at neoncowboy.com
Fri Mar 30 14:50:02 CST 2001


> Is it proper to combine a CLASS attribute and a STYLE attibute within
> a SPAN element (or within any element tag that that can have these
> attributes)?

Yes...this is what puts the 'C' in 'CSS'...'C' standing for 'Cascading' of
course.

You can use the class attribute to format elements globally (or,
semi-globally depending upon your use...whether in linked style sheets or
document specific style tags) and the style attribute to either add to,
modify or override formatting done by the class, inline.

Make sense?

jpc





More information about the thelist mailing list