Web Design Forum: About to kick the computer - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

About to kick the computer Ned a little help with CSS footer layout

#1 User is offline   fubofo 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 10-September 10
  • Reputation: 0

  Posted 10 September 2010 - 04:07 PM

Hey guys, first post here so I'll also take the time to say hi!

OK so I'm having a bit of bother getting a page layed out correctly. I'm having problems with my footer. I want it displayed at the bottom of my screen within a min-height container. (this is OK I have it stup perfectly on a few pages).

The problem I am running into is on a few pages where I have a div that is floated left. For some reason my footer displays over the top of the float:left and clear:both does nothing. This is really starting to frustrate me, so I'm asking for a little help (a fresh pairs of eyes is always great).

The problem can best be viewed at http://www.mytilesandbaths.co.uk/shop (try clicking on a few categories to see what happens).

Any help would be greatly appreciated!
0

#2 User is online   andyl 

  • Web Guru huh...
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,414
  • Joined: 21-January 10
  • Reputation: 191
  • Gender:Male
  • Location:Surrey / HANTS
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 10 September 2010 - 04:17 PM

You shouldn't really use position:absolute really (excluding overlaying divs/images, such as 'change picture' on Facebook profiles for example), since it will cause overlay. Once your footer is not positioned 'absolute', the clear fix will work.

To keep your footer at the bottom, use a sticky footer - see this one for an example.
1

#3 User is online   ayoungh 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,032
  • Joined: 06-August 10
  • Reputation: 93
  • Gender:Male
  • Location:London
  • Experience:Intermediate
  • Area of Expertise:I'm Learning

Posted 10 September 2010 - 04:21 PM

View Postandyl, on 10 September 2010 - 04:17 PM, said:

You shouldn't really use position:absolute really (excluding overlaying divs/images, such as 'change picture' on Facebook profiles for example), since it will cause overlay. Once your footer is not positioned 'absolute', the clear fix will work.

To keep your footer at the bottom, use a sticky footer - see this one for an example.


Nice example :) +1
0

#4 User is offline   fubofo 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 10-September 10
  • Reputation: 0

Posted 10 September 2010 - 05:18 PM

Thanks for the reply guys. I have managed to resolve the issue myself after taking a break and having a beer lol. Thanks for the link, I am already aware of that layout but it didn't seem to work on the site.

Anyways I have now got it working exactly how I wanted with some padding-bottom and margin-bottom. Not exactly the best way but it works lol
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users