HighDots Forums  

100% Height for Left Column

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


Discuss 100% Height for Left Column in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
rfox@scoe.net
 
Posts: n/a

Default 100% Height for Left Column - 07-24-2006 , 08:06 PM






I have a two-column layout where I want the left column to have a
colored background while the right column (main content div) has a
white background. Please see http://www4.scoe.net/rfox/nest/index4.html

My problem is that the colored background in the left column only
extends to the height of the content leaving a white gap below it. How
can I make the left nav's color stretch the entire height?

On a side note, in Internet Explorer and only Internet Explorer, the
photo in the gray message box disappears, but is fine in every other
browser. Any ideas on that wacky issue?

Thanks.

-Ray


Reply With Quote
  #2  
Old   
Wes Groleau
 
Posts: n/a

Default Re: 100% Height for Left Column - 07-24-2006 , 10:31 PM






rfox (AT) scoe (DOT) net wrote:
Quote:
My problem is that the colored background in the left column only
extends to the height of the content leaving a white gap below it. How
can I make the left nav's color stretch the entire height?
The default skin for nucleus (http://www.nucleuscms.org)
solved that by having a div _outer_ to both columns, and
doing a vertical-only repeat of a gif of the same color
as background behind that column.

I'm not saying that's the best way, but that's what they did.
When I widened the column in the CSS, it took me quite a while
to figure out why (it seemed) that the blocks _in_ the column
widened but the column itself did not.

--
Wes Groleau

Beware of the man who works hard to learn something, learns
it, and finds himself no wiser than before ... He is full of
murderous resentment of people who are ignorant without having
come by their ignorance the hard way.
-- Kurt Vonnegut


Reply With Quote
  #3  
Old   
boclair
 
Posts: n/a

Default Re: 100% Height for Left Column - 07-24-2006 , 11:07 PM



rfox (AT) scoe (DOT) net wrote:
Quote:
I have a two-column layout where I want the left column to have a
colored background while the right column (main content div) has a
white background. Please see http://www4.scoe.net/rfox/nest/index4.html

My problem is that the colored background in the left column only
extends to the height of the content leaving a white gap below it. How
can I make the left nav's color stretch the entire height?

On a side note, in Internet Explorer and only Internet Explorer, the
photo in the gray message box disappears, but is fine in every other
browser. Any ideas on that wacky issue?

Thanks.

-Ray

Suggest

Set the left margin on left column to 0

Add a left border rule to content class of the appropriate color, solid
and the width of the left column.

Louise


Reply With Quote
  #4  
Old   
rfox@scoe.net
 
Posts: n/a

Default Re: 100% Height for Left Column - 07-25-2006 , 06:58 PM



Thank you both for your suggestions. I tried 'em both out, but in this
instance, they created more problems. I can't believe there's not a
simple and effective way to achieve this. :/

I wound up adding a spacer image at the bottom of the left column and
adjusting the footer's z-index to float above it. Not elegant, but it
works.

Thanks again.

-Ray


Reply With Quote
  #5  
Old   
rfox@scoe.net
 
Posts: n/a

Default Re: 100% Height for Left Column - 07-27-2006 , 07:15 PM



For those that follow with the same issue, a simple method to achieve a
two column layout with both columns appearing equal in height can be
found at:
http://www.alistapart.com/articles/fauxcolumns

-Ray


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.