473,385 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

100% Height for Left Column

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

Jul 25 '06 #1
4 2761
rf**@scoe.net wrote:
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
Jul 25 '06 #2
rf**@scoe.net wrote:
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
Jul 25 '06 #3
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

Jul 25 '06 #4
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

Jul 28 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Not4u | last post by:
Hello, I have a problem with CSS code. I want to have one menu column with a fixed width and a 100% height and the rest of the page for content. ---------------- |.|.|<--100%-->|...
2
by: patrick h. | last post by:
Greetings, I am encountering some issues regarding using float while desiring to set the height to 100%. This is likely due to my own misunderstanding of the way things actually function -- any...
3
by: Lamberti Fabrizio | last post by:
I've got the problem described in the table above. I've put a div red with some text inside a TD, but its height is less than 100% of TD height as you can see. I've defined the following...
17
by: Mike | last post by:
I'm trying to create a page: Three sections (left, topright and bottomright), each with a heading and scrolling (overflow) content. The size of these sections should be based upon the size of the...
4
by: reycri | last post by:
I have a page that works as I intend in IE but not in Firefox: <html> <head> <title>Overflow Test</title> </head> <body style='overflow:hidden; margin:0; padding:0;'> <table border='0'...
1
by: Mike Collins | last post by:
I am trying to create some pages and have them take 100% of the window, but I cannot get 100% to work. If I set the height of my div, the page displays a scroll bar and it looks like I set the...
0
by: sannymak | last post by:
Hello All, I have some problems making the columns 100% and forcing the footer at the bottom. Please refer to the code below and let me know a solution: HTML CODE: <!DOCTYPE html PUBLIC...
1
by: adamjblakey | last post by:
Hi, Right i have just built a site which has 3 divs align to the left and in the outer 2 divs i have a background which i want to be a 100% so when the middle stretches so do the outer 2 but it...
1
by: beansetc | last post by:
Since I began doing CSS layouts instead of tables last year, it seems like every single site I do I run into the same problem -- getting a div to stretch to 100% height. I find the solution to it, it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.