HighDots Forums  

Re: using both style and class in an element

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: using both style and class in an element in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Richard Barnet
 
Posts: n/a

Default Re: using both style and class in an element - 07-10-2003 , 06:07 PM






"Dan Langille" <usenet02 (AT) YEAH (DOT) RIGHT.dvl-software.com.invalid> wrote in
message news:c5nrgv8dslidqdgifl17rs29hf6loh2js8 (AT) 4ax (DOT) com...
Quote:
Hi folks,

I found this in some pages:

td style="border-bottom: 1px solid #000000; border-left: 1px solid
#000000; background-color:#4080A0;font-weight: bold; color: #000000;"
class="myclass"

I've never seen both style and class used in the same element. Is the
common? Which wins? What happens?

This is where the "cascade" rules come into play. IDs have more weight than
CLASSes, but locally-defined styles have more weight than linked
stylesheets, the last instance of style defined overrides a previous
instance, etc., etc.

-- Richard




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.