Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > CSS: making a container go the max lenght of a page

View Poll Results: Is CSS 2 capable of replacing HTML tables
Poll Options:
Yes - always death to tables 0 votes (0%)
Some times - it meets my needs 0 votes (0%)
Not yet - maybe in the future 0 votes (0%)
Never - Tables for ever 0 votes (0%)
Multiple Choice Poll. Voters: 0. You may not vote on this poll
CSS: making a container go the max lenght of a page
Thread Tools
Registered User
Join Date: Feb 2003
Status: Offline
Reply With Quote
Oct 7, 2003, 07:49 AM
 
Hi- I am new to CSS, and I am having a problem making a container take up 100% of the height of the page. This is my code:

#subPageLeftContent {

float:left;
width:427px;
height: 100%;

border-left-width:1px;
border-left-style: solid;

border-bottom-width:1px;
border-bottom-style: solid;

padding-left:10px;
padding-right:40px;
padding-bottom:20px;

border-color:#ccc; }

#subPageRightContent {

float:left;
width:200px;
height: 100%;

border-left-width:1px;
border-left-style: solid;

border-bottom-width:1px;
border-bottom-style: solid;

border-right-width:1px;
border-right-style: solid;

padding:10px;
border-color: #ccc;
background:#f6f6f6; }


However the subPageLeftContent and subPageRightContent only become as large as their content. Can I make this subPageLeftContent and subPageRightContent both touch the bottom of the page.

As currently one is longer is then the other, and it looks odd. The 100% height does not work.

-Depolitic
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:14 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2