on the same block. %%#$##$!!!
Cheers :)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rebecca Cox
Sent: Wednesday, 30 March 2005 11:35 a.m.
To: wsg@webstandardsgroup.org
Subject: [WSG] !important via script possible?
I'm pretty sure this isn't possible
I'm pretty sure this isn't possible, but does anyone know if its
possible to add the !important declaration to a style set with script,
as in:
document.getElementById(mydiv).style.height = hvar + px !important;
Its fine in Gecko but not IE6... Any ideas?
I'm pretty sure this isn't possible, but does anyone know if its
possible to add the !important declaration to a style set with script,
as in:
document.getElementById(mydiv).style.height = hvar + px !important;
When would this ever be necessary? Do you have a test page we could
look at?
When
Rebecca Cox wrote:
I'm pretty sure this isn't possible, but does anyone know if its
possible to add the !important declaration to a style set with script,
[...]
Its fine in Gecko but not IE6... Any ideas?
As just mentioned in the reply to another thread, IE ignores !important
--
Patrick H. Lauke
A warning against using the !important declaration as a hack:
see http://tantek.com/log/2004/09.html#d07t1434
here's an excerpt:
IE (all platforms) supports !important, just go try the CSS1 Test Suite
section 3.1 (http://www.w3.org/Style/CSS/Test/CSS1/current/sec31.htm) important
test suite