Click to See Complete Forum and Search --> : placing text in html


hitman
01-20-2003, 05:21 PM
hi,

can you tell me how to place a text at the bottom of a page when there is only a little things that are on the page?

thank you

Stefan
01-20-2003, 07:22 PM
<div style="position:absolute; bottom:0; left:0; width:100%; text-align:center;">text at the bottom of the page</div>

A better way, is to use position:fixed instead of absolute, since it will make the text stick at the bottom even if the page is large enough to add scrollbars. Sadly IE doesn't understand it.