Scrollable Container

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Scrollable Container

    Is it possible to create a Panel with a vertical scrollbar?

    Thanks
    Rob
    Robert Guest

  2. Similar Questions and Discussions

    1. Scrollable Text Area
      Hi, I have inherited a website that uses javascript/DHTML to create a scrollable text area. I suspect it was created using a Dreamweaver extension...
    2. Scrollable Layer?
      Anyone know how to create a layer that can scroll? I want a fixed layer size that the mouse-wheel can scroll lower than the fixed area. ...
    3. scrollable grid
      I need a scrollable grid and keep the header fixed. I found one at http://www.datawebcontrols.com/demos/ScrollableDataGridFixedHeader.aspx but I...
    4. Scrollable DataGrid
      You can use a panel control and put the datagrid in it. Then set the asp:panel...style="overflow:auto"..... There is a real nice short article on...
    5. How to you put form into a scrollable field?
      I am creating a flash form which having lots of field that can't fit into the screen, so i wonder how can i create a scroll bar to scroll the form?
  3. #2

    Default Re: Scrollable Container

    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
    [url]http://www.takempis.com[/url]
    Big things are made up of
    lots of Little things.

    "Robert" <robert_dx@gmx.com> wrote in message
    news:097701c33f0a$f4799f20$a101280a@phx.gbl...
    > Is it possible to create a Panel with a vertical scrollbar?
    >
    > Thanks
    > Rob

    Kevin Spencer Guest

  4. #3

    Default Re: Scrollable Container

    The method Kevin mentioned is the preferred method in my opinion, but
    IFrames are also worth mentioning. This of course involves hosting a second
    page inside your first. This has advantages and disadvantages.
    Here's more info:
    [url]http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/IFRAME.asp[/url]

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]


    "Robert" <robert_dx@gmx.com> wrote in message
    news:097701c33f0a$f4799f20$a101280a@phx.gbl...
    > Is it possible to create a Panel with a vertical scrollbar?
    >
    > Thanks
    > Rob

    Steve C. Orr, MCSD Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139