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 06-02-2009, 04:05 PM   PM User | #1
cmcconnell
New Coder

 
Join Date: Apr 2009
Posts: 51
Thanks: 5
Thanked 0 Times in 0 Posts
cmcconnell is an unknown quantity at this point
Need to stretch Div to bottom of page

I have attached my html and css files - I want to stretch #footer to the bottom of the page... how can I do that? I tried height 100% but it did not change.

Any suggestions?
Attached Files
File Type: css global_style.css (1.7 KB, 99 views)
File Type: txt sample.txt (1.2 KB, 124 views)
cmcconnell is offline   Reply With Quote
Old 06-02-2009, 04:12 PM   PM User | #2
masterofollies
Senior Coder

 
Join Date: May 2005
Posts: 2,137
Thanks: 96
Thanked 72 Times in 72 Posts
masterofollies can only hope to improve
Using 100% will only drop it when you add more content to it. Take out 100% and try this.

700px

and see what you get.
__________________
Rowsdower! has accused me of having mental problems, and the administrator allowed it. What a great forum huh?
masterofollies is offline   Reply With Quote
Old 06-02-2009, 05:18 PM   PM User | #3
cmcconnell
New Coder

 
Join Date: Apr 2009
Posts: 51
Thanks: 5
Thanked 0 Times in 0 Posts
cmcconnell is an unknown quantity at this point
The problem with adding 700px is that it makes the page that long as well. Thanks anyways.
cmcconnell is offline   Reply With Quote
Old 06-02-2009, 05:20 PM   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:
I have attached my html and css files
Any way to see a link to your page?
__________________
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
Users who have thanked abduraooft for this post:
cmcconnell (06-02-2009)
Old 06-02-2009, 05:32 PM   PM User | #5
cmcconnell
New Coder

 
Join Date: Apr 2009
Posts: 51
Thanks: 5
Thanked 0 Times in 0 Posts
cmcconnell is an unknown quantity at this point
Well, I don't have it up yet. It's a pretty trivial reason that I want to get this to work: I use a CMS that when my clients edit pages online, it sets their background to the body background instead of white, so I wanted to keep the body bg white for them editing so they don't get confused, but I guess I will actually have to set the bg color to the light brown color. Thanks for taking the time to look at this!
cmcconnell is offline   Reply With Quote
Old 06-02-2009, 05:39 PM   PM User | #6
masterofollies
Senior Coder

 
Join Date: May 2005
Posts: 2,137
Thanks: 96
Thanked 72 Times in 72 Posts
masterofollies can only hope to improve
Oh its the footer, you want to have it stay on bottom correct?

Add this to footer and see if that works.

PHP Code:
positionabsolute;
    
bottom0px
__________________
Rowsdower! has accused me of having mental problems, and the administrator allowed it. What a great forum huh?
masterofollies is offline   Reply With Quote
Reply

Bookmarks

Tags
div, footer, stretch

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 01:18 AM.


Advertisement
Log in to turn off these ads.