DIV "overflow: auto" bug in FF and NN?

A

alanborne

In the latest non-beta Firefox and Netscape browsers, a full
window DIV with the overflow style set to auto doesn't work
as it should. In IE, if the screen is resized and the contents of
the DIV extend beyond the window then the scrollbars appear
in the DIV, but the same doesn't hold true for the other two
browsers - the full page scrolls. Is this a bug, or something
fundamental that I'm missing?

E.g.,

<HTML>

<HEAD></HEAD>

<BODY>

<TABLE WIDTH="100%" HEIGHT="100%">

<TR><TD>Something</TD></TR>

<TR><TD>

<DIV STYLE="HEIGHT: 100%; OVERFLOW: AUTO;">

Many lines of content.

</DIV>

</TD></TR>

<TR><TD>Something else</TD></TR>

</TABLE>

</BODY>

</HTML>
 
D

David Dorward

alanborne said:
Is this a bug, or something fundamental that I'm missing?

The latter.
<TABLE WIDTH="100%" HEIGHT="100%">

Invalid HTML.

Table data cell has no height specified, therefore height is the
default - "auto".
<DIV STYLE="HEIGHT: 100%; OVERFLOW: AUTO;">

Height is specified in percentage. Height of parent element is "auto".
Therefore height collapses back to "auto".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,479
Members
44,900
Latest member
Nell636132

Latest Threads

Top