html - Flexbox filling not work after change browser window size in Chrome -


i try create simple crossbrowser abaptive web design based on flexbox technology, have problem in chrome browser. here default view: flexbox crossbrowser design

if minimize browser window , reduce width of window - content text "flexcontent" block stretched down out browser window. in chrome "flexsidebar" block calculated height wrong! in firefox, opera , ie height calculating "flexsidebar" block fine. here can see blue background in minimized chrome: blue background below flexsidebar

css:

    html, body {     height: 100%;     width: 100%;     top: 0;     bottom: 0;     left: 0;     right: 0;       padding: 0;     margin: 0; }  html{     background-color: blue;     height: 100%; }  body{     display: -webkit-flex; /* safari */     display: flex;     flex-direction: column;     background-color: red; }  .flexwrapper{     flex-basis: 100%;     display: -webkit-flex; /* safari */     display: flex;     flex-direction: row;     background-color: purple; }  .flexheader{     flex-basis: 50px;     flex-grow: 0;     flex-shrink: 0;     background-color: green; }  .flexsidebar{     flex-basis: 250px;     flex-grow: 0;     flex-shrink: 0;     background-color: mediumvioletred; }  .flexcontent {     display: -webkit-flex; /* safari */     display: flex;     flex-direction: column;     flex-basis: 100%;     background-color: yellow; }  .flexpage{     flex-basis: 100%;     flex-grow: 1;     flex-shrink: 1;     background-color: tomato; }  .flexfooter {     flex-basis: 50px;         flex-grow: 0;     flex-shrink: 0;     background-color: turquoise; } 

html:

<!doctype html> <html>     <head>         <title>the flexbox</title>         <meta charset="utf-8">         <meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1" />         <link href="assets/main/css/style.css" rel="stylesheet" type="text/css" />     </head>     <body>         <div class="flexheader">             flex header         </div>         <div class="flexwrapper">             <div class="flexsidebar">                 flex sidebar             </div>             <div class="flexcontent">                 <div class="flexpage">                     flexpage<br />                     <p>lorem ipsum dolor sit amet, consectetur adipiscing elit, sed eiusmod tempor incididunt ut labore et dolore magna aliqua. ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>                     <p>lorem ipsum dolor sit amet, consectetur adipiscing elit, sed eiusmod tempor incididunt ut labore et dolore magna aliqua. ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>                 </div>                  <div class="flexfooter">                     flex footer                 </div>             </div>         </div>     </body> </html> 


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -