I try to vertically center a div in an outer div but it doesn't work. I tried to look around on the web but couldn't find an explanation for my specific problem... When trying to align horizontally it's working => "margin:0 auto;"
Anyone ?
<div style="height:240px;width:100%;">
<div style="width:33%;height:100px;margin:auto 0;">
<span class="" style="font-size:26px">Hello </span>
<br/><br/>
<img style="width:150px" src="example.jpeg"
/>
</div>
</div>
See Question&Answers more detail:os