|
| |
|
|
robersot
Posts: 3 Joined: 12/1/2004 Status: offline
|
two columns equal height - 12/1/2004 13:50:37
Hi, I have been struggling to make two columns in my layout have equal height regardless of which one has more content. I haven't been able to figure out a way to make it work using background images like I usually would. I can make it work using "display: table" but of course that doesn't work in IE. I am running out of things to try and would be more than grateful for any suggestions. My goal is to have the bottoms of the content and menu divs line up at all times. Thanks for your help. http://test.newpaltz.edu/tim/newsite_barebones/ The css is included in the source.
|
|
|
|
d a v e
Posts: 4064 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: two columns equal height - 12/1/2004 15:10:38
not sure whether it works in IE but how about min-height? (on each column) e.g. min-height: 220px;
_____________________________
David Prescott Gekko web design
|
|
|
|
robersot
Posts: 3 Joined: 12/1/2004 Status: offline
|
RE: two columns equal height - 12/1/2004 15:38:22
Thanks for the suggestion. I've played around with heights and min-heights. I've found that without any content I can make it work by specifying min-heights for mozilla and then using the star hack to specify heights for IE that only IE will recognize. But as soon as I add content, if the content extends beyond the min-height the other div doesn't stretch with it.
|
|
|
|
c1sissy
Posts: 5084 Joined: 7/20/2002 From: NJ Status: offline
|
RE: two columns equal height - 12/1/2004 16:00:07
Dan has the correct answer, go to PIE and the site that Dan is recomending and you will be able to use this for a muliti column layout. PIE is one of the best IMO for anything related to positioning and any kind of bug for IE.
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
|
|
robersot
Posts: 3 Joined: 12/1/2004 Status: offline
|
RE: two columns equal height - 12/1/2004 16:15:31
Thank you for your help. I agree that poisitioniseverything is a great site. I actually read this page when I was searching for solutions. I frequently use the background image technique to solve these types of problems. However in this case I haven't been successful. The problem is the horizontal space between the main image and the content div. I don't know how to include a background image and keep that space there.
|
|
|
|
c1sissy
Posts: 5084 Joined: 7/20/2002 From: NJ Status: offline
|
RE: two columns equal height - 12/2/2004 0:20:08
I'm not sure if I am right on this, but doesn't IE not recognize the min/max height? If you creat a small gif, and give it the proper repeate in your styles, this should work?
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
|
|
d a v e
Posts: 4064 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: two columns equal height - 12/2/2004 3:05:43
sissy you're probably right - i think it tried it once and it might have been for this reason. how about a container div with the 2 columns in it, make the columns 100% in height? (so they fill their parent container) sorry just guessing now...
_____________________________
David Prescott Gekko web design
|
|
|
|
Giomanach
Posts: 6090 Joined: 11/19/2003 From: England Status: offline
|
RE: two columns equal height - 12/2/2004 3:37:22
IE won't parse the 100% height....
_____________________________
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|