I have a menu the have rectangular boxes 90×50. Some have single line text, other have multiline text
question : How to VERTICALLY align it to the bottom with pure css no hack please
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Vertical aligninment in CSS isn’t that easy as you’d intuitively expect. As far the straightforward property
vertical-align: bottomworks in table cells only. Here’s an excellent resource which explains how (not) to vertical align in CSS: Understanding vertical-align, or “How (Not) To Vertically Center Content”.In a nut: the following works in real webbrowsers:
But thus not in MSIE. You’d like to make the parent element relative and wrap the text in an absolutely positioned element and then put it to bottom. Here’s a copy’n’paste’n’runnable example.