HTML CSS examples for CSS Layout:Flex Column
Change the width of a CSS flex-box column
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .container {<!--from w w w . j a v a 2 s.com--> display: flex; width: 75%; height: 500px; position: relative; margin: 0 auto; height: 500px; overflow: hidden; } .right-col { flex-flow: column wrap; flex-grow: 1; height: 100%; display: flex; } .menu { flex-basis: 10%; background: lightblue; } .header { flex: 0 0 10%; background: lightgray; } .body { flex: 0 0 80%; background: purple; } .footer { flex: 0 0 10%; background: lightgreen; } </style> </head> <body> <div class="container"> <div class="menu"> Menu </div> <div class="right-col"> <div class="header"> Header </div> <div class="body"> Body </div> <div class="footer"> Footer </div> </div> </div> </body> </html>