javascript - How to get browser's height from CSS -
i using scrollbar function in div tag.
i want set scroll bar browser height.
i trying value this.
javascript
<script> var height = window.innerheight; </script> css code
<style> .kryesore { overflow-y: scroll; overflow-y:auto; height:height-320px ; } </style> here have created jsfiddle code
i want show table within header , footer without browser scrollbar.
the scroll bar should show in table requirement.
if browser window height subtract 320. fix issue , browser windows scroll bar not shown want javascript value css.
can tell me correct solution.
you can via css only. don't know css class scrollbar, i'm using scrollbar class.
<style> .scrollbar { overflow-y: auto; height: calc(100vh - 320px); } </style> 100vh equal browser's height, calc function can dynamically calculate such css values.
Comments
Post a Comment