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/
*
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…