javascript - Disable scroll bar in header but not in content for a web page -


I have a simple web page with headers and content, it may seem

  & Lt; Div id = "Wrap" & gt; & Lt; Div id = "header" & gt; & Lt; / Div & gt; & Lt; Div id = "content" & gt; & Lt; / Div & gt; & Lt; / Div & gt; By default, it has a scroll bar to its right, but I want to disable / freeze the scroll bar in the header, but keep it in content, is it possible by javascript Is Jquery or CSS?  

thanks

ago enter image details here

after enter image details here

You can get it by setting the content at a certain height and by setting the overflow-y: scroll . P> Example:

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -