#container { display:flex; } #d1 { width:50px; } #d2 { flex:1; } #d3 { flex:2; }