0

I followed the solution mentioned here but, the text doesn't float at the bottom in my webpage, .

Right now, my CSS looks like this:

#note{
    position: absolute;
    bottom: 0px;
    text-align: center;
}

How do I get it at the bottom, like a footer or copyright message? Also, why is it not centring?

jsFiddle

Community
  • 1
  • 1
Rahul Desai
  • 15,242
  • 19
  • 83
  • 138

2 Answers2

2

Add:

html{
   height:100%;
}

To your CSS to ensure body extends to the height of the viewport.

To center, add width:100% to #note

SW4
  • 69,876
  • 20
  • 132
  • 137
0

Your note is sitting at the bottom of the container, so that part is working. Your container maybe isn't as tall as you'd like it to be? Also you can center it by setting the width of the #note to 100%. It's currently centered but because it's an absolutely positioned it's width is not the same as it's parent.

jordans
  • 48
  • 3