Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 17th, 2009, 05:38 AM
Registered User
 
Join Date: Apr 2008
Location: , , India.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default scrolling a div tag in aspx page

Hi,

I am working with a div tag with vertical scroll. The problem is the main page,where the div tag is placed, scrolls when the scrollbar in div tag reaches its maximum.

How do i allow my main page not to scroll with div tag.

I have applied style="overflow:auto" in the div tag but no use.

please suggest
  #2 (permalink)  
Old March 17th, 2009, 09:15 AM
Friend of Wrox
Points: 894, Level: 11
Points: 894, Level: 11 Points: 894, Level: 11 Points: 894, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2005
Location: London, , United Kingdom.
Posts: 166
Thanks: 2
Thanked 33 Times in 33 Posts
Default

Have you set a fixed height for your div? If not it will not know at what point to add scrollbars. If you want it to cover the whole screen, just add style="height:100%;" to the div.
If you definitely don't want the main body to ever scroll, you can also set <body style="overflow:hidden;"> to ensure scrollbars are never shown

HTH
Phil
  #3 (permalink)  
Old March 17th, 2009, 09:33 AM
Registered User
 
Join Date: Apr 2008
Location: , , India.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks philip.

I have added height as 450px.

I want main page scroll bar also to scroll.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Content page DIV tag problem msbsam ASP.NET 2.0 Professional 0 September 19th, 2008 12:12 AM
div scrolling not working in safari mac toshi CSS Cascading Style Sheets 1 December 1st, 2007 04:48 AM
div tag as link Stagmo Dreamweaver (all versions) 0 April 14th, 2006 12:35 AM
DIV TAG marclena ASP.NET 1.0 and 1.1 Professional 2 May 24th, 2005 11:14 AM
scrolling <DIV> anshul Javascript How-To 12 August 4th, 2004 09:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.