[SOLVED] footer positioning

This is a discussion on "[SOLVED] footer positioning" within the Web Page Design section. This forum, and the thread "[SOLVED] footer positioning are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 12th, 2007, 09:50
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 267
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] footer positioning

morning/evening people!

can someone have a look at this page.....

http://www.design365.co.uk/sef/test.htm

im having problems positioning the footer, i need it to go all along the very bottom of the page like the banner does at the top

EDIT: its working in IE but not FF

Last edited by danny322; Nov 12th, 2007 at 09:53.
Reply With Quote

  #2 (permalink)  
Old Nov 12th, 2007, 09:58
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: footer positioning

Try this:

Code: Select all
#footer{
clear: both;
background-image: url(images/footer.gif);
height: 60px;
background-repeat: repeat-x;
margin-bottom: 0;
padding-bottom: 0;
}
Reply With Quote
  #3 (permalink)  
Old Nov 12th, 2007, 10:09
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 267
Thanks: 0
Thanked 0 Times in 0 Posts
Re: footer positioning

haha cheers mike! what does clear: both; do then?
Reply With Quote
  #4 (permalink)  
Old Nov 12th, 2007, 10:30
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: footer positioning

Quote:
Originally Posted by danny322 View Post
haha cheers mike! what does clear: both; do then?
It's all about floats.

In your CSS, whenever you write "float: left" or "float: right", you fundamentally change the layout properties of that element. Read about floats here.

Non-floated items may appear above floats, despite being "beneath" them in the source code. "clear: both" fixes this, by explicitly commanding the item to position itself beneath any floats that come before it in the source. This is like drawing a line under your floats.

"clear: left" is the same, but only takes notice of left-floated boxes. Similarly, "clear: right". Most of the time you just want "clear: both". Sometimes you want to clear floats, but you lack an appropriate element to "hook" the clearing onto; in this case, just use an empty <div class="clear"></div> (and apply the CSS "clear: both" to this class).

Note that you cannot use "float: left" (or right) together with "position: relative" (or absolute, or static, or fixed). Floating is a fundamentally different layout method from positioning; it's impossible to create a positioned float. If you do specify both, I believe the positioning takes precedence.

Last edited by MikeHopley; Nov 12th, 2007 at 10:35.
Reply With Quote
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to get my footer to stretch Gav Web Page Design 3 Dec 16th, 2007 14:15
[SOLVED] Footer help nashultz07 Web Page Design 7 Nov 27th, 2007 01:01
[SOLVED] misbehaving footer mykl Web Page Design 15 Oct 15th, 2007 19:20
Cleaning up footer and positioning genista Web Page Design 10 Aug 14th, 2007 14:28
Positioning a footer at the bottom of the screen apod Web Page Design 1 Oct 8th, 2006 10:04


All times are GMT. The time now is 06:55.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43