vartical align in div

G

GD

Bobs ya unkle said:
Is it possible to vertically align the contents of a div to the bottom?

Not in the same way you can with a table cell, but perhaps you could
achieve your desired effect using top padding or margin?

<div style=" padding-top:5em; border:black solid thin;">
This isn't really aligned vertically, but it looks that way.
</div>
 
D

David Dorward

Bobs said:
Is it possible to vertically align the contents of a div to the
bottom?

Only by switching it to the table based rendering model with display:
table-something - but MSIE doesn't support this.
 

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
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top