how to insert vertical scroll bar in html page in visual studio professional in windows 8 app..... RRS feed

  • General discussion

  • I am trying to insert vertical scroll bar through changing some attributes like overflow:scroll,overflow-x:hidden,Overflow:scroll....but it is not working.........
    Friday, February 15, 2013 10:19 AM

All replies

  • It might depend on the actual content or HTML code you are using, most of the time you need a DIV that wraps the content as follows:

    <div style="height:50px;width:100px;overflow-y:scroll;overflow-x:hidden;">
    <!-- your large scrollable content here -->

    If you want the vertical scroll to show, the content has to exceed the pixel height of the container, but you need to always set a fixed height to the container, otherwise, the container will resize to the size of the content and the scroll will never show up.

    Friday, February 15, 2013 12:44 PM