Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS: Making columns of equal height?

Status
Not open for further replies.

JediDan

Programmer
May 15, 2002
128
US
Ok, here's another one:

I have a page with two columns beneath a header. The left column has a gray background color. Usually, the right column is longer than the left column.

As it stands, the left column's background color only extends down as far as the actual data in the left column. How can I make the background color extend past the end of the data, down to the end of the right column so that there's no blank white space on the left?

Both columns are setup as
Code:
<div>
elements in the HTML. I tried setting
Code:
height: 100%
on the right column, but that had no effect. Setting the
Code:
height
property to some arbitrary value is closer, but obviously not a useable solution.

The effect I'm looking for is similar to the main page of the [a href=&quot;[URL unfurl="true"]http://www.php.net[/URL]]php web site[/a], but I don't think they're using CSS for the effect. I need a CSS solution.

Any help is greatly appreciated.
 
Ok two mistakes: I tried setting
Code:
height: 100%
on the left column, not the right. And I guess that's not how you do a link in TGML.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top