By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,626 Members | 1,862 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,626 IT Pros & Developers. It's quick & easy.

Layers and ntscape

P: n/a
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
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Stuart wrote:
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 */
}

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #2

P: n/a

"David Dorward" <do*****@yahoo.com> wrote in message
news:cg*******************@news.demon.co.uk...
Stuart wrote:
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 */
}

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>

height: auto; min-height: 20px;

Brilliant..........thank you
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.