Scrollable Container

K

Kevin Spencer

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top