.flexbox { display: flex; margin:10px; } .red { background: red; } .blue { background: blue; flex-shrink:0; }