-3

I have this footer that will not stick to the bottom of the page.

I think the issue is with my HTML and body not spanning the entire site but I just cannot find the exact place to correct this. I know its a big no-no to link to my page but I simply don't know what code to post here.

I cannot set the content to static instead of absolute because then my menu items will start pushing the content divs around when they open.

AGE
  • 3,604
  • 3
  • 35
  • 58
AronChan
  • 245
  • 2
  • 17

3 Answers3

1

To fixed position into bottom you can try this code

Html:

<div class="tofix">
  <p>Fixed this div into bottom</p>
</div>

Css:

.tofix{
      width:300px;
      position:fixed;
      bottom:0;
 }
wahid
  • 1,120
  • 1
  • 9
  • 16
0

The problem occurs because of your #content. You just try to change its position as following:

#content{
    position : static;
}

Or you just simply remove it because the position is set as static by default.

lvarayut
  • 12,603
  • 15
  • 62
  • 84
0

Remove the position:absolute from your #content.

Also It worked when I first opened the link, please don't change the live code while asking the question.

caffeinated.tech
  • 6,248
  • 1
  • 20
  • 39
  • And make the on hover sub menu `position:absolute` and position it with `top` and `left` etc. – caffeinated.tech Apr 26 '14 at 15:04
  • 1
    or you can put `position: absolute` on the submenuts and then `position: relative` on their parents so that the `top` and `left` properties are just relative to the submenus' parent element. – Arnelle Balane Apr 26 '14 at 15:06
  • the problem is that the submenus open on several menu items. so giving them specific top and left properties will not work – AronChan Apr 26 '14 at 15:08
  • @AronChan, true, to make it work for all menu options use @Arnelle's suggestion of adding `position:relaitve;` to the parent menu items, then the top and left attributes are relative to menu item which is it's parent. – caffeinated.tech Apr 26 '14 at 15:14