7/8 Is there a way to put a colored border on the inside of a cell
in an html table?
\_ use CSS, border attribute
\_ td, th { border: 2px solid orange }
\_ why ",", not " "?
\_ RTFSpecs
\_ with comma: "apply this rule to any td or th"
w/o comma: "apply only to th that is child of td"
\_ Can't you set BGCOLOR? For example, <TD BGCOLOR=GREEN>
I don't know if it's standard, though, so it might not work in
all browsers.
\_ That stuff has been deprecated.
\_ and you will die for suggesting the use of bgcolor, esp. in caps
\_ related css question: how can i change the blue background of the
selected item in a dropdown list?
\_ select option:active { background-color: pink; } might
work.
\_ at least w/ IE6, it doesn't work. i think "active" is
only a pseudo-class for the a element, no?
\_ In CSS1, yes, but CSS2 expands active, hover, and focus
to all elements. See if it works with mozilla. Also, try
select, option:active { background-color: pink; }
^ note the comma
just to make sure.
\_ I suggest using the validator services. valid xhtml is
the way of the future. http://validator.w3.org and
http://jigsaw.w3.org/css-validator
\_ ya very nice and all but it still doesnt work.
\_ it may not work but at least you'll be spec-clean! |