Scrollable Container

  • Thread starter Thread starter Robert
  • Start date Start date
a Panel is a div. Therefore, you can create a scrolling div by adding one of
a couple of styles:

overflow-x:scroll or overflow-x:auto - Creates a horizontal scrollbar
overflow-y:scroll or overflow-y:auto - Creates a vertical scrollbar

Notes: "scroll" always puts in the scrollbar. "auto" puts it in when the
text overflows the size of the div. Also, if you use "overflow-x" you must
set the width style property, and if you use "overflow-y" you must set the
height style property, or it will not work.

Example:

<div runat="server" id="Div1" style="width:200px;
height:200px;overflow-x=auto;overflow-y=scroll;"></div>

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.
 
Back
Top