On Sunday 2005-11-20 16:08 -0500, Erik Harris wrote:
> These three lines of CSS don't appear to do anything in Firefox (1.5RC2):
>
> TABLE.pics A IMG { border: 1px; border-color: #AAA }
> TABLE.pics A:link:hover IMG { border: 1px; border-color: #5EE }
> TABLE.pics A:link:visted IMG { border: 1px; border-color: #3AA }
There are two problems here:
1. you left out the "i" in "visited". (The somewhat misnamed
"Javascript Console" in Firefox 1.5 would tell you this, since it
contains CSS parser errors too.)
2. 'border: 1px' is a shorthand that specifies the default values for
'border-color' and 'border-style'. Since the default for
'border-style' is 'none', you have no border. You should use
'border: 1px solid #aaa', etc. (Looking at the style rules in DOM
Inspector helped with this, since the style rules' contents shown in
DOM inspector have the contents expanded.)
-David
--
L. David Baron <URL: http://dbaron.org/ >
Technical Lead, Layout & CSS, Mozilla Corporation
pgp40PlhJMdtL.pgp
Description: PGP signature
______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
