I have a very very simple markup and css , but for some reason, I can not seem to center the divs with flexbox . ( horizontal and vertical )
I have gone through many questions / answers - but I can not find the culprit ..
Everything is extremely simple , container, two divs :
<div id="content">
<div class="logo-box box">
<img alt="logo" src="http://placehold.it/222x320?text=logo">
</div>
<div class="main-box box">
<h2>loremIpsum</h2>
<span>Powerful Slogan™</span>
<ul class="info">
<li>
<h3>Add. 地址</h3>
<p>(HK) Street, level, , Bulding ,room, etc ..</p>
<p>(CN) 中国广东.. yep, in chinese ..106</p>
</li>
<li>
<h3>Tel . 电话</h3>
<p>HK (+852) 970-0000 </p>
<p> CN (+86) 0757-000000 </p>
</li>
<li>
<h3>Mail. 邮件</h3>
<p>info@domain.com </p>
<p> admin@domain.com</p>
</li>
</ul>
</div>
</div>
and flex css for the container :
#content {
display:flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-content: center; /*should not matter - only one row*/
align-items: center;
}
When adding the reset, it is even more strange. ( Why ?? )
Here is a js bin : https://jsbin.com/jihaji/edit?html,css,output
Is there something wrong with my markup that I can not see ? With the css ? Or with my whole understanding of the flexbox
?