Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 10:31 PM
salty_dogs
Guest
 
Posts: n/a
Default text justification: bottom?

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.


  #2  
Old July 20th, 2005, 10:31 PM
Knud Gert Ellentoft
Guest
 
Posts: n/a
Default Re: text justification: bottom?

"salty_dogs" <salty_dogs@hotmail.com> skrev :
[color=blue]
>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.[/color]

vertical-align works if you use display: inline-table
--
Knud
  #3  
Old July 20th, 2005, 10:31 PM
brucie
Guest
 
Posts: n/a
Default Re: text justification: bottom?

in post: <news:bve1o5$rcdf4$1@ID-195982.news.uni-berlin.de>
"salty_dogs" <salty_dogs@hotmail.com> said:
[color=blue]
> 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?[/color]

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
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles