By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,648 Members | 1,190 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,648 IT Pros & Developers. It's quick & easy.

text justification: bottom?

P: n/a
i have a <div> with a couple of <p> inside it. the div is given a border
and a fixed size. how would i get the <p> to sit at the bottom of the <div>
box?

what i've read is that "vertical-align: bottom" is an inline only property
and therefore doesn't effect the contents of the <div> box. i'd like to
stay away from tables and "valign" if its possible.
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"salty_dogs" <sa********@hotmail.com> skrev :
what i've read is that "vertical-align: bottom" is an inline only property
and therefore doesn't effect the contents of the <div> box. i'd like to
stay away from tables and "valign" if its possible.


vertical-align works if you use display: inline-table
--
Knud
Jul 20 '05 #2

P: n/a
in post: <news:bv************@ID-195982.news.uni-berlin.de>
"salty_dogs" <sa********@hotmail.com> said:
i have a <div> with a couple of <p> inside it. the div is given a border
and a fixed size. how would i get the <p> to sit at the bottom of the <div>
box?


not supported by IE:
div{display:table-cell;vertical-align:bottom;}

this is:
div{position:relative;}
p{bottom:0;position:absolute;}

--
brucie - i usenet nude
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.