Use css multimedia queries . First move main-col above side-col. Then this in your .css file should give you control.
@media only screen and (max-width: 360px) { .main-col { float: none; width: 100%; } .side-col { float: none; width: 100%; background-color: silver; }
This will apply CSS for screen sizes of 360 pixels or lower.
@media only screen and (min-width: 360px) { .main-col { float: left; width: 83%; } .side-col { float: left; width: 17%; background-color: silver; }
This applies for screen sizes above 360 โโpixels.
If text wrapping is required, but try the following: http://codepen.io/anon/pen/KlmIF
source share