javascript - Body does not scroll on overflow -


when add div height bigger page size, body not scroll though have added overflow:scroll. tried on overflow:auto;

jsfiddle here.

add height 100%

#first {   position: fixed;   left: 0;   right: 0;   z-index: 0;   margin-left: 20px;   margin-right: 20px;   overflow: auto;   height:100%;/* add this*/ } 

https://fiddle.jshell.net/se65eqm8/3/


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -