I have the following:
<div style="background: Red; height: 100px;">
<ul>
<li><a href="/">Home</a></li>
</ul>
</div>
I would like to vertically center the ul in the div but I'm not sure how.
Fiddle demo Can anyone advise me on this.
Marilou
Best Solution
You could always use
display: table-cell;
in combination withvertical-align: middle;
:HTML:
CSS:
See working jsFiddle demo