The CSS flexible box layout (flexbox) is a great spec. The flex-direction property allows rearranging the position of children inside a flex container. This works in pretty much every browser — even defunct ones like Internet Explorer. Don’t work hard and write JavaScript, be lazy and write CSS. Video: Safari’s and Internet Explorer’s flex-direction. Sorry, your browser does not support embedded videos. Here is a link to the video instead. Safari’s and Internet Explorer’s flex-direction Index: Cache · Source