473,403 Members | 2,366 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,403 software developers and data experts.

IE doesn't let me adjust a div height to it's parent 100%

Hi there.
I though that maybe somebody has gone through this before. I've checked
out the group, and I haven't been able to find anything on this topic.
(ok, ok, I didn't check the posts one-by-one).

This is:

As CSS2.1 says, if you put a height:100% property in an element, it
should try extend its height as far as his parent lets him. This way, I
tried the following code:

#contentdiv{
width:277px;
position:relative;
height:100%;
margin-left-width:1px;
}

#imagediv{
position:absolute;
left:-1px;
top:100%;
}

<table>
<tr>
<td>
<div id="contentdiv">
blah blah, <div id="imagediv"><img src="bottom_bar.gif"></div>
</div>
</td>
</tr>
</table>
as you can see, what I'm trying to do is 'decorating' the cells of a
table with an image below the bottom of them (note: the image has also
a link, that's why I can't use background-image).

In firefox it works great, but ie6, doesn't expand the contentdiv's
height till the bottom of the cell, so my image are not equally aligned
with the bottom of the cell.
I'm going sick on this, but this is such a silly thing, tmat I'm pretty
sure It's been already solved by anybody.
txs

Jul 21 '05 #1
0 1941

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

Similar topics

6
by: Jason Bassford | last post by:
Okay, What I'm trying to do is create two boxes, one on top of the other. The first is a static height, the 2nd, underneath it, should take up the remaining amount of screen space and overflow...
5
by: Secret Guy | last post by:
Because of my experience posting various places over the last couple of weeks: I'm expecting to be greated with hostility for asking about concepts instead of "practical" things, since that has...
50
by: Shadow Lynx | last post by:
Consider this simple HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 STRICT//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head>...
17
by: Mike | last post by:
I'm trying to create a page: Three sections (left, topright and bottomright), each with a heading and scrolling (overflow) content. The size of these sections should be based upon the size of the...
4
by: reycri | last post by:
I have a page that works as I intend in IE but not in Firefox: <html> <head> <title>Overflow Test</title> </head> <body style='overflow:hidden; margin:0; padding:0;'> <table border='0'...
5
by: Pugi! | last post by:
I am making a site with lot of AJAX components. When I present a form (in a layer on top of contents of page) I want to make sure that the user cannot click on a link or button other then on the...
1
by: Jeff Bender | last post by:
http://people.virginia.edu/~kjl3d/testHeight.html Why doesn't the table with id shouldBeTall have a height that is the same as it's enclosing td? Firebug tells me that the table's height is 25...
4
by: lilOlMe | last post by:
Hi there! I'm developing a "scrollable table". At first I started using CSS. It worked pretty well until I found a bug that happens when placing this table into a tabbing control... So I...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.