/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Full page 3 col liquid layout regardles of content.Height problem

I’m building a site where I have my navigation on the right hand side and the main content in the middle. I’ve split it into a 3 column layout firstly to keep the center column in the middle of the screen but for it still to be liquid and secondly because the left column may be used as somewhere for secondary navigation to be, dependent on the type of content.
I’d quite like these columns to span the full height of the window. This is more important for the two side columns. If I give the container div a height in px then the 3 floated divs fill its height. I have tried combinations of height:100% but just can’t get them to span the full height.
This is the basic code: (The backgrounds are just there so I can see what’s going on)

[CODE]body{
padding:0;
margin:0;
font-family:Geneva, Arial, Helvetica, sans-serif;
}

#container{
min-width:900px;
}

#navigation {
float:right;
width:15%;
height:100%;
background:#CCCCCC;
}

#content {
float:right;
width:75%;
height:100%;
background:#999999;
}

#spacer {
float:right;
width:10%;
height:100%;
background:#666666;
}

#navigation ul{
font-size:250%;
list-style:none;
}[/CODE]

[code=html]<body>

<div id=”container”>

<div id=”navigation”>
<ul>
<li>HOME</li>
<li>WORK</li>
<li>PHOTO</li>
<li>ABOUT</li>
</ul>
</div>

<div id=”content”>
Content
</div>

<div id=”spacer”>
Spacer
</div>

</div>[/code]

I also want to have a mini footer in the navigation div that will need to be at the bottom of the window all the time in a fixed position style. I assume if I can get the navigation div to have a 100% height then i can just absolute position the mini footer inside it or have I got that totally wrong?
Here’s a little [URL=”http://www.tomforth.com/images/example.jpg”]diagram[/URL]
Thanks

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@thomas_4thauthorFeb 23.2010 — I've manged to sort the problem myself in terms of the 100% height problem. I had the floated divs height set to 100%, their container set to 100% and the body set to 100%. The problem was staring me in the face. Set the html height to 100% as well. I knew it would be something simple.
×

Success!

Help @thomas_4th spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...