Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-01-2011, 04:54 PM   PM User | #1
cosmoray
New to the CF scene

 
Join Date: May 2011
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
cosmoray is an unknown quantity at this point
The 100% height problem

I've got a liquid 3 column layout with a header and footer. I'm trying to get the 3 columns to 100% height. Basically, I want the page to cover the user's entire window.

Here's what I've got so far:
Code:
        <div class="wrapper">
            <div id="header">
            HEADER
            </div>
            <div class="container">
                <div id="left">
                LEFT
                </div>
                <div id="center">
                CENTER
                </div>
                <div id="right">
                RIGHT
                </div>
            <div id="footer">
            FOOTER
            </div>
            </div>
        </div>
And the CSS:
Code:
html, body {
	height: 100%;
}
/* --------------- WRAPPERS */
.wrapper {
	padding: 0;
	width: auto;
}
/* --------------- GLOBAL */
/* --------------- HEADER */
#header {
}
.container {
	height: 100%;
	min-height: 100%;
	position: relative;
}
/* --------------- LEFT PANEL */
#left {
	float: left;
	width: 20%;
}
/* --------------- CENTER PANEL */
#center {
	float: left;
	width: 60%;
}
/* --------------- RIGHT PANEL */
#right {
	float: left;
	width: 20%;
}
/* --------------- FOOTER */
#footer {
	clear: both;
	position: relative;
}
What am I doing wrong?

Last edited by cosmoray; 07-01-2011 at 09:17 PM..
cosmoray is offline   Reply With Quote
Old 07-01-2011, 05:04 PM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,678
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
You'd need to adopt a liquid faux column technique.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 07-01-2011, 07:26 PM   PM User | #3
cosmoray
New to the CF scene

 
Join Date: May 2011
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
cosmoray is an unknown quantity at this point
Alright, I've revised the code and ALMOST have it the way I want it.

Edit: resolved.

Edit 2: should be noted the issue WAS NOT resolved using the "faux column" technique. I used pure CSS that also works in IE 5.5+.

Last edited by cosmoray; 07-02-2011 at 12:32 AM..
cosmoray is offline   Reply With Quote
Old 07-02-2011, 05:44 AM   PM User | #4
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,678
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Quote:
Originally Posted by cosmoray View Post
Edit 2: should be noted the issue WAS NOT resolved using the "faux column" technique. I used pure CSS that also works in IE 5.5+.
Please share your solution.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

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

Forum Jump


All times are GMT +1. The time now is 06:23 PM.


Advertisement
Log in to turn off these ads.