| ||||||
| 5/19 |
| 2003/7/9 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:28968 Activity:high |
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! |
| 5/19 |
|
| validator.w3.org If you want to upload a file from your computer and have it validated, you can use this form: Local File: Validate File There is also an 31 Extended Interface available if you want to set any advanced options, and a 32 Extended File Upload Interface if you want to validate uploaded files with advanced options. Recent Updates These are the most recent major changes to this service. W3C 43 liability, 44 trademark, 45 document use and 46 software licensing rules apply. Your interactions with this site are in accordance with our 47 public and 48 Member privacy statements. |
| jigsaw.w3.org/css-validator -> jigsaw.w3.org/css-validator/ Jigsaw Powered CSS Validator W3C CSS Validation Service Welcome to the W3C CSS Validation Service! |