div Wont Vertically Align

H

homer

Cheers,

Can someone tell me why the text in top right div wont vertically align to
bottom? CSS vertical-align only works with images in some instances, so I
put it in the html also, but no luck. I also tried a span tag. It always
worked in table cells, but why not in div boxes?
http://wholives.com/temp/css4.html
Any suggestions?
Thanks,
Me
 
S

Spartanicus

S

Steve Pugh

homer said:
Can someone tell me why the text in top right div wont vertically align to
bottom?

Because there's nothing in your CSS that could make it do so.
CSS vertical-align only works with images in some instances, so I
put it in the html also, but no luck. I also tried a span tag. It always
worked in table cells, but why not in div boxes?

'vertical-align'
Applies to: inline-level and 'table-cell' elements

http://www.w3.org/TR/CSS21/visudet.html#propdef-vertical-align

You can make the text appear lower down by setting an appropriate
margin-top or padding-top to either the <h1> or the containing div. Or
you can wrap the <h1> and <h2> in another div and absolutely position
that to the bottom of the containing div.

Steve
 
R

Richard

Can someone tell me why the text in top right div wont vertically align
to
bottom? CSS vertical-align only works with images in some instances,
so I
put it in the html also, but no luck. I also tried a span tag. It
always
worked in table cells, but why not in div boxes?
http://wholives.com/temp/css4.html
Any suggestions?
Thanks,
Me

Get rid of the <br> tags at the bottom of the code!
Define a height for your menu.
Get rid of the position absolute for the divisions.
use float:left to position them side by side.
For positioning a paragraph at the bottom of a cell try this:

<p style="position:relative; bottom:5px;>
 
H

homer

Get rid of the said:
Define a height for your menu.
Get rid of the position absolute for the divisions.
use float:left to position them side by side.



float:left to position div boxes side by side? It works with two objects
in one div, but not two divs. I tried nesting the two divs with the float,
but no luck either.
http://wholives.com/temp/d.html
(internal css)
homer
 

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

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top