Hello,
this can be done with javascript.
I use it every other day:
http://www.killersites.com
Regards
Main Topics
Browse All TopicsI have two columns on my web page with each column inside a DIV tag. Each column has variable length text. The background colors of each column is only as tall as the information it is displaying. The background height needs to be as tall as the tallest of the two. Is there a way using CSS to force the height of both columns to the height of the tallest of the two columns?
<div id="Column1">
// variable amount of display info.
</div>
<div id="Column2">
// variable amount of display info.
</div>
Do I have to use a table for this, or can CSS handle it?
Thank you in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hello,
this can be done with javascript.
I use it every other day:
http://www.killersites.com
Regards
I think that using the faux-column approach is good.
www.alistapart.com/article
Good luck.
If you want you can try the image-free technique below.
http://matthewjamestaylor.
Good luck
MD
Is there a way to use the containing DIV sugested by carl_tawn that will expand or possibly contract to whatever is necessary? What if the content one some pages are bigger than 500px? Would like to avoid hard coding for the largest page height if necessary.
<div style="height:500px; border:solid 1px red;">
Thank you in advance for your help.
Stu Nichols has a good technique using wide colored borders on one div to provide the background color of the adjacent div(s). Example here (in 3 column form, but easily converted to 2 column):
http://www.cssplay.co.uk/l
...that matthewjamestaylor technique is brilliant... but with all the nested containers it reminds me a lot of the nested-table mess that CSS was supposed to save us from!!!
Business Accounts
Answer for Membership
by: glumlunPosted on 2009-01-29 at 05:05:01ID: 23496723
hi articles/f auxcolumns /
the best way to do this and not resort to tables is with faux columns
this site explains it better than i could:
http://www.alistapart.com/