Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 04-05-2008, 01:25 AM height:100% issue
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
First off, here's the relevant CSS (cutting out the parts that have only to do with color etc)
Code:
body {margin:0;padding:0;height:100%;}
html{margin:0;padding:0;height:100%;}
div#header{position:relative;}
div#container{margin:0 auto;height:100%;}
div#content{float:left;width:80%;}
div#navigation{float:right;width:20%;height:100%;}
As for the trimmed down snippet of code used
HTML Code:
<body>
<div id="container">
    <div id="header">
        <h1>Contact Book</h1><hr>
    </div>
    <div id="content">
        <div class="female">
            <h2><a class="female" name="1">Jane Doe</a></h2>
        </div>
    </div>
    <div id="navigation">
        <p><a href="#1">Jane Doe</a></p>
    </div>
</div>
</body>

That's a screenshot of how the navigation pane looks, what I want is for it to be extened all the way to the bottom with everything else.
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
 
Register now for full access!
Old 04-05-2008, 05:32 AM Re: height:100% issue
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
maybe reading the "stickies" would be a help

http://www.webmaster-talk.com/css-fo...l-browser.html

they are at the very top of the forum for a reason.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-05-2008, 12:41 PM Re: height:100% issue
Capt Quirk's Avatar
Extreme Talker

Posts: 223
Location: Flordidian
Trades: 0
Ok, if after reading the sticky, and reading the tutorial, my div still doesn't extend fully, what is next? I thought that is why this board is here, to answer questions and help.
Capt Quirk is offline
Reply With Quote
View Public Profile
 
Old 04-05-2008, 12:59 PM Re: height:100% issue
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 8,936
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
Then you post a link to your code and we try to help. The stickies are there for common problems to allow us to better tackle the, uh, quirkier ones. That is, they've taken the time to research it so you don't have to, so take advantage of it.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 04-05-2008, 01:20 PM Re: height:100% issue
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
The page fills the browser (I used that sticky to learn that) but for some reason this one div just doesn't want to extend all the way, it does extend partially below the bottom of the viewscreen but only by the amount that the toolbars take up. That's why I came here, because I am confused as to what is causing this since I thought it would go the whole way down (without the height:100% it only extends to the bottom of the content of the div and doesn't extend down to where it currently does, which is 100% of the viewscreen)
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 04-05-2008, 01:35 PM Re: height:100% issue
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 8,936
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
I would take height:100% off of html and body. It's sufficient to have it on container. Keep in mind that the divs nested within it will take up 100% height of the parent div. Do you have this uploaded somewhere to take a more in-depth look?

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 04-05-2008, 06:30 PM Re: height:100% issue
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
http://arenlor.com/test/
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 04-05-2008, 07:25 PM Re: height:100% issue
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
This might not be what you need but can you not set the height of the of the Navigation to around 2100px? it should give the look you need but not sure if its the best (clean) way to do it.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by bakerc; 04-05-2008 at 07:54 PM.. Reason: poss
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 04-07-2008, 08:17 PM Re: height:100% issue
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
This will work with position:absolute; but I haven't seen a website without absolute positioning on 100% divs, even though its not god to have absolute positioning.
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-07-2008, 10:13 PM Re: height:100% issue
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
The div he wants to extend to the bottom of the page if floated, I may be showing my lack of knowledge but I thought the only way to do this was to set a height as a floated div is outside normal document flow and would not react with others divs (if that makes any sense)
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 04-08-2008, 01:31 AM Re: height:100% issue
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
So how are you suggesting I change this?
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 04-08-2008, 02:01 AM Re: height:100% issue
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
Just clicked on the link and it looks like you have sorted it
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 04-08-2008, 06:04 AM Re: height:100% issue
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
It's not working for me, what browser are you using?
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 04-08-2008, 06:38 AM Re: height:100% issue
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
Try position:absolute; of the div you want to have 100% height. Just want to see if my theory is right
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-08-2008, 08:09 AM Re: height:100% issue
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
Quote:
It's not working for me, what browser are you using?
IE7

Quote:
Try position:absolute; of the div you want to have 100% height. Just want to see if my theory is right
If that doesn't work, just set the height on the Navigation div (which is floated right) to the height of the page (approx 2100px) or set the background the same colour as the body background which should give the look your going for.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by bakerc; 04-08-2008 at 08:11 AM..
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 04-08-2008, 08:16 AM Re: height:100% issue
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
Bad idea, what if the content of the page grows, that means he'd have to change the size for every page.
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-08-2008, 10:03 AM Re: height:100% issue
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
If he uses the same colour for the background it wouldn't but I do know what you mean about setting the height.
How should he do this with a floated div then? like I said in a previous post I may be showing my lack of knowledge - I would be grateful if you could tell me (and the OP) a better way to do this with a floated div.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 04-08-2008, 10:26 AM Re: height:100% issue
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
The only way I have found is adding

Code:
position:absolute;
to the div you want to have 100% height.
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-08-2008, 11:08 AM Re: height:100% issue
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
And that WILL remove the div completely from the document flow.
If the stickie was referenced the answer is in there. The alternative is to use the faux columns method, much easier, less hair-pulling.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-08-2008, 11:53 AM Re: height:100% issue
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
Quote:
If the stickie was referenced the answer is in there
I have had a look and found this as the link from the sticky doesn't explain about floated divs
http://www.communitymx.com/abstract.cfm?cid=A7E88

"Multiple Column CSS Layouts that Fill the Browser Window"

Is this the one your on about LadynRed - I belive you have to join the monthly subscription service to view this (thats fine if its the case, just want to make sure its the right one)
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Reply     « Reply to height:100% issue

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.11797 seconds with 12 queries