On Wed, 28 May 2008 20:17:32 -0300, Mansour wrote:
> I am wondering if there's a way to select an element that does not have the
> specified
> attribute set?
> For example, let's say I need to format all the H1 elements except one that
> has style
> attribute set. How do I do this ?
>
Not directly. You could possibly apply two rules - one for the element
that has the attribute, and another rule to apply your desired style to
those without.
Since your choice of "style" attribute confuses the issue - inline styles
override others - I'll give an example of the "id" attribute:
h1[id] {
color: black;
}
h1 {
color: red;
}
Now you have made all the H1 elements red, except for the one
(or more) that has an "id" attribute.
Cordially,
David
--
______________________________________________________________________
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/