Layers and ntscape

S

Stuart

Concerning <div> type layers

I have a page where text is wrote into a layer with a coloured background.
In IE if there is too much text for the size of the layer, the layer's hight
automatically adjusts to accomadte the text. In Netscape if there is too
much text, the text appears to come off the layer, wether this is due to the
layer not changing size or the background colour not expanding with the
layer I am not sure.

Is there a way to get the overall hieght of the text so as I can expand the
layer?


stuart
 
D

David Dorward

Stuart said:
I have a page where text is wrote into a layer with a coloured background.
In IE if there is too much text for the size of the layer, the layer's
hight automatically adjusts to accomadte the text. In Netscape

Netscape what? The very buggy 4.x series? The rather buggy 6.x series? Or
the pretty good 7.x series?
if there is too much text, the text appears to come off the layer, wether
this is due to the layer not changing size or the background colour not
expanding with the layer I am not sure.

Have you specified a height for the element? If so, this is a bug in IE.
"height" means "height" not "minimum height".

Use a hack along the lines of:

#element {
height: 20em; /* for the benefit of IE */
}

html>body #element {
height: auto; /* for the benefit of */
min-height: 20em; /* good web browsers */
}
 
S

Stuart

David Dorward said:
Netscape what? The very buggy 4.x series? The rather buggy 6.x series? Or
the pretty good 7.x series?


Have you specified a height for the element? If so, this is a bug in IE.
"height" means "height" not "minimum height".

Use a hack along the lines of:

#element {
height: 20em; /* for the benefit of IE */
}

html>body #element {
height: auto; /* for the benefit of */
min-height: 20em; /* good web browsers */
}


height: auto; min-height: 20px;

Brilliant..........thank you
 

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,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top