Encountering a peculiar Flexbox height dilemma specific to Safari.
Interestingly, in Chrome, the center
div perfectly fills the 100% height of the body
div.
Contrastingly, on Safari, the center
div extends beyond the 100% height of its container; seemingly claiming an additional 50% of the hero
element above it.
Is this issue familiar to anyone?
body,
html {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}
#container {
height: 100%;
background-color: #EEE;
flex: 1;
flex-direction: column;
display: flex;
}
#hero {
display: flex;
flex-direction: column;
background-color: #DDD;
width: 100%;
height: 100px;
text-align: center;
}
#body {
background: #CCC;
flex: 1;
flex-direction: row;
display: flex;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
}
#center {
background: #BBB;
flex: 1;
height: 100%;
max-width: 800px;
margin: 0 20px;
}
<div id="container">
<div id="hero">hero</div>
<div id="body">
<a href="#">Left</a>
<div id="center">center</div>
<a href="#">Right</a>
</div>
</div>