This is one of those things I learned a long time ago and never thought much about if I was actually doing it the right way.
Let\'s say we have a structure
use display:flex for two div floats side-by-side
display:flex
#wrapper { width: 600px; display: flex; } #sideBar { display: inline-flex; width: 25%; } #mainContent { width: 75%; flex: 1; }