Firefox Weirdness

The following does not work properly in Firefox (1.5).

<div id='div1' style='width:255;height:255;overflow:auto;display:none;'></div>

<
script>
    
function TurnItOn()
        {
            document.getElementById("div1").style.display= 'inline';
        }
</script>

The scrollbars will not show up.  It completely ignores the overflow:auto attribute.

To get the overflow to work properly, set the display attribute to 'block'.

Weird.

Print | posted on Thursday, February 23, 2006 4:54 PM

Feedback

# re: Firefox Weirdness

left by Will at 6/2/2006 3:05 AM Gravatar
U can use :
#div div1 {width:255;height:255;overflow:auto;display:none...}
...
<div id='div1'></div>
Because style is main.
Title  
Name
Email (never displayed)
Url
Comments   
Please add 5 and 6 and type the answer here: