cascading issue

liunx

Guest
so i have a line of code that looks like this

<td class="tdreq" bgcolor="#00FF33"> </td>

where tdreq is

.tdreq {
background-color: red;
border-size: 2;
border-color: blue;
border-top-style: ridge;
border-left-style: ridge;
BORDER-BOTTOM-STYLE: double;
BORDER-RIGHT-STYLE: double;
}

now if i run this all the styles should be kept except the background-color:, so it should be green and not red.

unfornatuly it doesnt work, it stays red.

is this illegal, and if so how do i get around this

<!-- m --><a class="postlink" href="http://vmspower.com/caboo/db_input/brand2.php">http://vmspower.com/caboo/db_input/brand2.php</a><!-- m -->

to check what the page loads like and too see the source.

only worry about name because the rest is not written line 215 in the code

any sugguestions, help, howtos or flames are welcomed<td class="tdreq bggreen">
where bggreen is a class defined in the css, or
<td class="tdreq" style="background:#00ff33;">AHH!

This is off topic, but I hope the color scheme is temporary while you are developing! It hurts my eyes! and, it is tough to read the info.....


just a thoughtOriginally posted by DARTHTAMPON
is this illegal, and if so how do i get around this
It's never illegal :D But whether or not it works depends on the browser. Most browsers will ignore HTML attributes if they aren't supported by the doctype being used, or if comparable CSS attributes exist. In other words, CSS takes precedence over presentational HTML attributes.
 
Back
Top