.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Code Snippets >> ASP.NET Controls >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

disable scroll bar

Posted By:Meetu Choudhary       Posted Date: June 08, 2009    Points: 10    Category: ASP.NET Controls    URL: http://www.dotnetspark.com  

disable scroll bar

In some cases we would like to disable the scroll bar on the page in that case we can use the following lines in the appropiate section of the .aspx page. the code is as follows

< body style="overflow: hidden" >

[style type="text/css"]

body {
overflow-x: hidden;
overflow-y: scroll;


Note: That all browsers doest not support this method (for instance IE for Mac still shows the scrollbars).

in my next article i will post the code how to handle those browsers...

Thanks and Regards
Meetu Choudhary


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend