[EMAIL PROTECTED] wrote:
> <li id="AB"><a href="whatever"><img src="whatever"></a></li>
>
> Now, I'd like to write code specific to that id "AB" that changes the
> width and max-width elts. Easy if you know what you're doing, but I
> clearly don't :(
Can't see what you're doing without a live example / page.
It may be a case of specificity[1], or that you are tearing the ID lose
from its element and addressing it wrongly, in the stylesheet.
Your example...
.AB li {
...won't work because there's no li inside AB - AB _is_ the specific li.
You're also using an ID in the source-code and a class in CSS, and that
won't target anything.
The following...
#TJK_dropDownMenu li#AB {
?width:2.23em;?
?max-width:2.5%;
}
...will target the li with an ID="AB", and nothing else. It also has
high enough specificity to override the general styling for
#TJK_dropDownMenu li.
regards
Georg
[1]http://www.w3.org/TR/CSS21/cascade.html#specificity
--
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/