Bottom positioning

  • Thread starter =?ISO-8859-1?Q?Fran=E7ois_de_Dardel?=
  • Start date
?

=?ISO-8859-1?Q?Fran=E7ois_de_Dardel?=

See: http://mapage.noos.fr/dardelf/2004.html

Is there a way I can position a line ("Happy New Year") to the bottom of
the window, irrespective of its size ? I think something was posted here
recently, but I did not save the note.

(Msg re-sent, because I did not see it in the NG 2 hours after sending
the 1st one).
 
B

brucie

Is there a way I can position a line ("Happy New Year") to the bottom of
the window,

p{width:99%;bottom:0;text-align:center;position:absolute;}

<p>xmas sucks big ones</p>
 
D

DU

brucie said:
in post <François de Dardel said:




p{width:99%;bottom:0;text-align:center;position:absolute;}

<p>xmas sucks big ones</p>

Only Opera 7.x will render this correctly. Mozilla 1.x and MSIE 6 will
treat bottom:0 relative to the viewport, not to the document. The
correct way to position it relative to the viewport is to use
position:fixed, not position absolute. The specs are also quite clear on
this.

Mozilla has a bug on this.
Bug 105286: viewport used as containing block for absolutely positioned
elements instead of root (percentage height, %, bottom)
http://bugzilla.mozilla.org/show_bug.cgi?id=105286

Opera is correct.

DU
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top