"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