Sent by Jukka K. Korpela on 15 May 2008 21:09
Tawnya wrote:
>>> With the given information, the answer is "no, you can't select an
>>> element on the basis of inner markup" (like an attribute of a
>>> descendant)
[...]
> Yesterday I came across code examples that allowed CSS rendering
> of specific image elements referenced to their width and height
> Measurements using;
>
> IMG[height="60"][width="468"], IMG[height="60px"][width="468px"]
> {display: none !important;}
That's a known technique, and usually used in _user_ style sheets to
block ads, at the cost of accidentally blocking other images as well.
Doesn't work on IE 6.
But it has nothing to with the question about selectors based on inner
markup. It's simply an application of attribute selectors.
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/