This Jake Archibald article is frequently referenced in articles about Flexbox.
It suggests that flickering can occur on the page because content is loaded in different sections as the page loads, and then flexbox does it's calculations and stuff moves.
But, there's no mention of flex-basis
and I'm wondering whether there's a reason that shouldn't be used for page layout? Maybe I'm missing something obvious.
.container {
display: flex;
flex-flow: row;
}
.main {
background-color: red;
flex-grow: 0;
flex-shrink: 0;
flex-basis: 75%;
}
.sidebar {
background-color: yellow;
flex-grow: 0;
flex-shrink: 0;
flex-basis: 25%;
}
<div class="container">
<div class="main">
Main content
</div>
<div class="sidebar">
Sidebar content
</div>
</div>