Don G <ma******@yahoo.com> wrote:
position: relative; applied to the div and then position: absolute;
bottom: 0; applied to a container around the text. (risky, can lead to
all sorts of problems)
I was planning to use this solution on my website, but I was unaware of
any problems with this method. If you would, please elaborate on why
this solution is risky, and what sort of problems it might lead to.
Others have mentioned the bugs that some browsers have with
positioning in general and bottom in particular.
But even when working perfectly there may be problems. You can't know
how big the text will be so you can't know how tall the positioned
element will be. As the positioned element has been taken out of the
document flow it doesn't contribute to div's height. So the top of the
text may well end up spilling out the top of the div and overlapping
any elements that preceeded the div. If the div is near the top of the
page the text may even extend off the top of the browser window.
This sort of thing can happen whenever absolute positioning is used
but seems to happen more often when absolute positioning is used as a
substitute for IE's lack of support for half the decent stuff in CSS2.
:-(
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>