473,385 Members | 1,531 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Layers and ntscape

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
2 1147
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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Lizzy | last post by:
I have an internet application which has a progress bar show whenever the customer is requesting data from the server. This progress bar is coded to work in both Netscape 4.75 and above and IE 5.0...
1
by: Chris Leonard | last post by:
Hi. Can anyone help me please. If the syntax for IE is: document.getElementById(layerID) What if I want to use layers ? document.layers ?????????
6
by: David List | last post by:
I'm having a problem using different properties of the document object in the example javascripts in my textbook with browsers that identify themselves as using the Mozilla engine. One example of...
8
by: Freek te Water | last post by:
Hi, Hope no-one is offended by my probably noob question... Context: I have a web page design, which always centres in the middle of the screen (using a 100%*100% HTML-table). Now I also use...
4
by: ashkaan57 | last post by:
Hi, I am using the following code to show/hide part of an html page. It works in Netscape and Firefox but dies in IE: "Error: document.layers is null or not an object" <style> ..noshow {...
5
by: evanburen | last post by:
I have a set of 10 div layers on a page that each contain dynamic content pulled from a database so the size of the div layers is not static. Each layer can be viewed or hidden by checking...
10
by: Joey_Stacks | last post by:
Does anyone know of a scipt that will rotate random div layers on page refresh? I have a primary content area front and center on my site homepage, and I'd like to rotate various chunks of html...
5
by: Burt | last post by:
There's an architect at my 200 person company that advocates having many layers in all my C# apps. He wants web services, use case handlers, facade layers, data gateways, etc. When I ask why all...
1
by: Grimm | last post by:
I am developing an internalk inteface that integrates alot of seperate tools into one interface. The current version uses one Iframe inside a div layer for positioning. Currently the seperate web...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.