Thanks for replies on this. I've got this all go in CSS now so don't need to apply !important in my script.
Don't have much choice re using !important as have to mix a few things - inline height style on a block, DHTML height adjustments on this, then CSS fixes for that IE 3-pixel jog all 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, 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? ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ****************************************************** ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************