Rewrite layout without using flex boxes