overflow - Using CSS calc() in App Style Layout with Footer -
i'm trying use css calc() build app style layout footer @ bottom.
the main css players:
.content-container { height: calc(100% - 110px); background-color: red; overflow: hidden; } .left, .right { float: left; height: 100%; } .left { width: 70%; background-color: blue; } .right { width: 30%; background-color: yellow; } .right-content { overflow: auto; height: 100%; margin-bottom: 30px; } here's quick overview of html:
<div class="content-container"> <div class="left"> <h1>left</h1> </div> <div class="right"> <div class="right-title"> title of section </div> <div class="right-content"> <div class="group"> </div> </div> </div> </div> <div class="footer"></div> please view full example here: http://codepen.io/woocas/pen/mwybgd?editors=110
i'm trying make overflow in .right div (the yellow one) take height of .content-container.
but can see in example, scrollbar goes beyond space allocated content-container. it's behind footer.
any appreciated.
have tried setting css heights in right column percentage values since they're embedded in container they'll present in fit manner?
.right-title { background-color: gray; height: 65%; } .right-content { overflow: auto; height: 35%; }
Comments
Post a Comment