cwestney
08-23-2005, 02:28 PM
Hi everyone,
I'm trying to have a fluid div, containing two columns, with the height inherited from whichever column has the greatest height.
The first 'column' is the nav, and increasing or decreasing the list items does set the containing divs height - so far so good.
The second 'column' contains an image. The image is set to 100% width and height. But the containing div doesn't pick up the image height and expand accordingly.
Also, I've got transparent 'stripes' that sit across the top of the image. In FF they stay at 100% of the height of the image at any window size. But IE doesn't pick up the height, and they stay at just one line height.
The only site I found that addressed this exact issue, said it couldn't be done..... Am I asking the impossible? It seems like a resonable design to me!
Many thanks for any help | advice | links etc.
Charlotte.
HTML code below, CSS file attached.
<body>
<div id="headercontainer">
<div id="containerleft">
<div class="mainmenu">
<ul>
<li>Visiting</li>
<li>Learning About</li>
<li>Looking After</li>
<li>Living In</li>
<li>Visiting</li>
<li>Learning About</li>
<li>Learning About</li>
<li>Looking After</li>
<li>last one</li>
</ul>
</div>
</div>
<div id="containerright"><div id="column1">1</div><div id="column2">2</div><div id="column3">3</div><div id="imagecontainer"><img src="homepage630.jpg" width="100%" height="100%"/>
</div></div>
</div>
</body>
I'm trying to have a fluid div, containing two columns, with the height inherited from whichever column has the greatest height.
The first 'column' is the nav, and increasing or decreasing the list items does set the containing divs height - so far so good.
The second 'column' contains an image. The image is set to 100% width and height. But the containing div doesn't pick up the image height and expand accordingly.
Also, I've got transparent 'stripes' that sit across the top of the image. In FF they stay at 100% of the height of the image at any window size. But IE doesn't pick up the height, and they stay at just one line height.
The only site I found that addressed this exact issue, said it couldn't be done..... Am I asking the impossible? It seems like a resonable design to me!
Many thanks for any help | advice | links etc.
Charlotte.
HTML code below, CSS file attached.
<body>
<div id="headercontainer">
<div id="containerleft">
<div class="mainmenu">
<ul>
<li>Visiting</li>
<li>Learning About</li>
<li>Looking After</li>
<li>Living In</li>
<li>Visiting</li>
<li>Learning About</li>
<li>Learning About</li>
<li>Looking After</li>
<li>last one</li>
</ul>
</div>
</div>
<div id="containerright"><div id="column1">1</div><div id="column2">2</div><div id="column3">3</div><div id="imagecontainer"><img src="homepage630.jpg" width="100%" height="100%"/>
</div></div>
</div>
</body>