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
Page Height (I bet this is an easy to answer question))
Old 05-14-2009, 01:24 PM Page Height (I bet this is an easy to answer question))
Experienced Talker

Posts: 48
Name: April
Trades: 0
I know that I should know this by now, and I am sure I have learned it and forgot it... But do divs automatically adjust their height for the content placed within them if you don't specify height? Is there anything that needs to happen to get it to work correctly such as height: 100% ? I would like my homepage to be considerably shorter (with no content "below the fold") but my other pages may need to be longer. Obviously if divs do adjust for content that would be great. However I have many divs within divs so I am thinking that inner "white page space" may adjust for elements appropriately but the other divs will not be displayed to show the amount i want shown of them- since their content will only be as great as the div inside of them... here is an image of the bottom of my site (attatched to this message). I am only concerned about the light green, dk green, and white divs. I was thinking that unless there is a really easy solution I may need to include a seperate CSS sheet for my homepage. Please let me know what the best solution is. Thank you!
if you need to look at the site my website is www.creative-synthesis.com and the links are fixed now. Yay! But I haven't re-uploaded the site yet.
Attached Images
File Type: png Picture 1.png (167.3 KB, 3 views)
mightyjoeape is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-14-2009, 02:00 PM Re: Page Height (I bet this is an easy to answer question))
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
But do divs automatically adjust their height for the content placed within them if you don't specify height?
Yes. However, if you are using floats, you need to make sure that you are CLEARING them, otherwise it may APPEAR that the div isn't expanding to hold added content.

You really do not want to set defined heights, this will actually prevent things from expanding (except in IE6, which wrongly expands the box) the way you want them to.
__________________
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 05-18-2009, 11:57 AM Re: Page Height (I bet this is an easy to answer question))
Experienced Talker

Posts: 48
Name: April
Trades: 0
Alright, that makes since. Thank you.
mightyjoeape is offline
Reply With Quote
View Public Profile
 
Old 05-21-2009, 12:30 AM Re: Page Height (I bet this is an easy to answer question))
Experienced Talker

Posts: 48
Name: April
Trades: 0
I am running into the problem with needing to clear for floats. What should I be clearing exactly?
mightyjoeape is offline
Reply With Quote
View Public Profile
 
Old 05-21-2009, 09:45 AM Re: Page Height (I bet this is an easy to answer question))
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Try reading the stickies - http://www.webmaster-talk.com/css-fo...you-clear.html
__________________
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
 
Reply     « Reply to Page Height (I bet this is an easy to answer question))
 

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 0.80787 seconds with 13 queries