KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Ok this is the div structure. <div class="DivParent"> <a href="#"> <div class="DivWhichNeedToBeVerticallyAligned"></div> </a> </div> DivParent has fixed width and height values but DivWhichNeedToBeVerticallyAligned does not have fixed height values. If you make DivParent display:table-cell; you can vertically align DivWhichNeedToBeVerticallyAligned but i don't want to use that feature since it causes some mess. A href tag link should be same size with the divParent i mean whole divparent has to be clickable. like display:block. So are there any CSS way of vertically aligning or lightweight jquery solution would also help. Thank you. Here jsfiddle : http://jsfiddle.net/XHK2Z/ *
Tags (comma-separated)
Save Edits
Cancel