473,396 Members | 1,758 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,396 software developers and data experts.

height attribute in IE 6.0 CSS

Hello everyone and thanks in advance.

I am having a very simple but frustrating problem with IE 6.0. I have
a style defined as:

..tooltip{
background-color:#FFFF99;
font-family: Arial, Helvetica, sans-serif;
font-size: 8pt;
color: black;
border: 1px solid black;
left:100px;
top:200px;
width:100px;
height: 20px;
visibility: visible;
position: absolute;
}
I then use this style in a div: <div id='tooltip1'
class="tooltip"></div>

Changing the height below some value (below about 15px) causes no
further changes to the height of the div in IE 6.0., although it does
work as it should in NS 7.1. I have tried this using both standards
mode and non-standards mode with no effect.

Thanks for any help you can provide,

Sina Tootoonian
Jul 20 '05 #1
2 3219
Els
Sina Tootoonian wrote:
Hello everyone and thanks in advance.

I am having a very simple but frustrating problem with IE 6.0. I have
a style defined as:

.tooltip{
background-color:#FFFF99;
font-family: Arial, Helvetica, sans-serif;
font-size: 8pt;
color: black;
border: 1px solid black;
left:100px;
top:200px;
width:100px;
height: 20px;
visibility: visible;
position: absolute;
}
I then use this style in a div: <div id='tooltip1'
class="tooltip"></div>

Changing the height below some value (below about 15px) causes no
further changes to the height of the div in IE 6.0., although it does
work as it should in NS 7.1. I have tried this using both standards
mode and non-standards mode with no effect.


IE just makes the div fit around its content. So I suppose
your content is higher than 15px.
What's in it? If it's just a word or two, not wrapping
lines, try setting the line-height to less than 15px, and
also the padding of the div to zero, and the margin of
whatever is inside that div to zero as well.
What happens then?

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #2
On 4 May 2004 15:11:00 -0700, Sina Tootoonian
<ac**************@hotmail.com> wrote:
Hello everyone and thanks in advance.

I am having a very simple but frustrating problem with IE 6.0. I have
a style defined as:

.tooltip{
background-color:#FFFF99;
font-family: Arial, Helvetica, sans-serif;
font-size: 8pt;
color: black;
border: 1px solid black;
left:100px;
top:200px;
width:100px;
height: 20px;
visibility: visible;
position: absolute;
}
I then use this style in a div: <div id='tooltip1'
class="tooltip"></div>
As you never set an id tooltip1, no need to include this. If you did,
you've left out critical info. If so, post a URL where we can see all
that's going on.
Changing the height below some value (below about 15px) causes no
further changes to the height of the div in IE 6.0., although it does
work as it should in NS 7.1. I have tried this using both standards
mode and non-standards mode with no effect.


My guess is this is IE's overflow default. IE will stretch the container
to accomodate content, while other browsers might simply allow content to
overflow the visible borders. Might be that even though no content is
there, the 1em of height (which will be about 15px in many cases) is
accounted for even if you want it smaller.

BTW, why did you set font-size in pt? Use ems or %. IE cannot scale text
unless you do that, making it impossible for some users to read your
content.

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: james | last post by:
Hi there, I'm using the FOP from xml.apache.org/fop tool to convert from HTML to PDF. I'm reading the height and valign attributes of a column-cell (TD) in the XSL file:
2
by: Shawn Anderson | last post by:
Is there a way to detect the height of a TD tag?
6
by: stevehayter | last post by:
Wonder if anyone can help me solve this problem! I have a 3x3 table which i'm using to create a table with a rounded edge using images in the top left, top right, bottom left, and bottom right...
17
by: Torbjørn Pettersen | last post by:
I've got a table where I want some of the cells to use a background image. The cells have variable height, so I am using an image with a rather small height to fill up the background of the cells,...
9
by: Wladimir Borsov | last post by:
As well known for <IMG ...> tags in web pages a width and a height attribute can be applied. What I want to do now is to fix the width for ALL the images on my web page to exactly lets say 70 pixel...
3
by: Lamberti Fabrizio | last post by:
I've got the problem described in the table above. I've put a div red with some text inside a TD, but its height is less than 100% of TD height as you can see. I've defined the following...
7
by: simon | last post by:
I have simple html(aspx) page, but vertical height won't work. Even if i had set the height of a table=100%, the table is not 100% height. I spend a lot of time(my real page is more...
6
by: jslaybaugh | last post by:
I'm working on an ASP.NET 2.0 application and am having trouble with a very simple table layout. Using ASP.NET 2.0 it defaults to XHTML 1.0 Transitional and I am trying to comply. However, I...
1
by: perspolis | last post by:
Hi all I created a Web Project but it dosen't support some properties of HTML tags and it gives me following error: Attribute 'height' is not a valid attribute of element 'table' I don't know...
19
by: Rabel | last post by:
I have a page that is using tables (please no comments about this - I understand it should be css but firefox created this template) I have a menu down the left side and the bottom is supposed to...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.