On Wed, Jan 28, 2009 at 4:48 AM, johny why <johny...@gmail.com> wrote:
>>>does anyone know how to apply !important globally to all properties of an
>>>element?
>>>like this?:
>>>a.myclass !important {...
>
>>You can just be more specific in defining the selector
>>html body a.myclass {...
>
> --not quite what i mean. i want to apply the !important rule to all the
> properties (height, color, etc) of  a.myclass, by stating !important only
> once for the entire element.

And this is exactly what you will get - you will get the same result
by using the construction I recommended. Just avoid using !important
declarations elsewhere that could overwrite these propeties. If you
want to be sure a property will get priority, declare it in a more
specific selector. !important is to be avoided unless absolutely
necessary.

Regards,
Vladislav Vladimirov
http://www.ovalpixels.com/
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
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/

Reply via email to