HTML CSS examples for CSS Widget:Menu
Left menu under content when resizing
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .whole {<!--from www. j ava2 s . c om--> display:flex; } .leftmenu ul { margin:0px; padding:0px; } .leftmenu { float:left; background-color:Chartreuse; padding:0px; } .content { float:left; background-color:yellow; } @media screen and (min-width : 520px) { .leftmenu { width:31%; order:2; } .content { width:71%; order:3; } .whole { flex-direction:row; } } @media screen and (max-width : 519px) { .leftmenu { width:100%; order:3; } .content { width:100%; order:2; } .whole { flex-direction:column; } } </style> </head> <body> <div class="whole"> <div class="leftmenu"> <ul> <li>Lore</li> <li>Lo</li> <li>Lorem</li> </ul> </div> <div class="content"> Lorem ipsum do <br>Lorem ipsum do </div> </div> </body> </html>