html - Flexbox sticky footer height issue on larger screen sizes -


i have issue sticky footer made flexbox. works on resolutions upto 1366*768 on 1600*1300 pixels footer gets pushed bottom of visible screen despite there being little content.

enter image description here

here html structure using.

body , html {     height: 100%; }  #main {     display: flex;     flex-direction: column;     min-height: 100vh; }  #content {     flex: 1; }      <body>         <div class="ui secondary pointing menu">             <a class="active item"><img src="/assets/images/ti.jpg" class="image ui small"></a>             <div class="right menu"><a class="ui item">logout</a></div>         </div>         <div id="main">             <div id="content" class="ui container">                 <div id="pie-menu" style="position: relative;">                     <div class="dvsl-resize-triggers">                         <div class="dvsl-expand-trigger">                             <div style="width: 1128px; height: 501px;"></div>                         </div>                         <div class="dvsl-contract-trigger"></div>                     </div>                     <!--zoomcharts 1.11.7-->                     <div>                         <div class="dvsl-background-container" style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px;">                             <div class="dvsl-background" style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px;">                                 <div class="dvsl-background-image dvsl-pc-background-image" style="bottom: 0px; top: 92px; left: 405px; width: 317px; height: 317px; background-image: url(http://86.47.106.22:8080/assets/images/dublinportco.jpg);"></div>                             </div>                         </div>                         <canvas class="dvsl-canvas" style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; width: 1127px; height: 500px;" width="1127" height="500"></canvas>                         <div class="dvsl-border" style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px;"></div>                         <div class="dvsl-interaction" tabindex="0" style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; cursor: default;">                             <div class="dvsl-resizer" style="width: 1127px; left: 0px;"></div>                             <div class="dvsl-info-left" style="position: absolute; display: none; left: 752px; top: 256px;"><b>owl</b></div>                         </div>                         <div class="dvsl-menu-container dvsl-menu-workaround" style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; cursor: default;"><span class="dvsl-empty"> </span></div>                     </div>                 </div>             </div>             <div class="ui inverted vertical footer segment">                 <div class="ui container">                     <div class="ui grid">                         <div class="twelve wide column">thermtec 2016. rights reserved</div>                         <div class="three wide column"><img src="/assets/images/logoenigma.png" class="image ui small"></div>                     </div>                 </div>             </div>         </div>         </body> 

the site visible @ http://86.47.106.22:8080/

your header (ui secondary pointing menu) taking space while #main div 100% of viewport becomes [header height] + [viewport height] = footer pushed down

you can try make header 10% of viewport , content 90% of viewport ensure consistency

.ui.secondary.menu {     ...     height: 10%;     box-sizing: border-box;     margin-bottom: 0; }  #main {     display: flex;     flex-direction: column;     height: 90%; } 

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 -