HighDots Forums  

Re: CSS layout: how to make column eextend downward

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: CSS layout: how to make column eextend downward in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Nik Coughlin
 
Posts: n/a

Default Re: CSS layout: how to make column eextend downward - 12-03-2007 , 07:20 PM







"darius" <noone (AT) here (DOT) invalid> wrote

Quote:
I have 2 columns


#main_content
{
float: left;
width: 75%;
margin: 0;
background: #f8eaea;
padding: 1em 0% 3em 2%;
}


#side_content
{
float: left;
width: 20%;
padding: 3em 1% 3em 1%;
background: #fff;
}


The problem here is when one of the columns is shorter than the other,
it's pretty obvious due to the different background color that the
shorter column does not extend down all the way, which makes it look odd.
How should this be done? thanks in advance.
You have a few options, faux background as described by Mark, use display:
table which is the ideal solution but doesn't work in IE (infuriating isn't
it), or use tables (yeah, I know!).

I discuss these options here:
http://nrkn.com/3ColRoundAlpha/

It's a three column layout but the principle is the same. Except because
you're not using transparency (presumably) you also have the faux background
option as offered by Mark.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.