Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrollable Pane on Page? 2

Status
Not open for further replies.

stevensteven

Programmer
Jan 5, 2004
108
CA
Hello,

Is there a control or HTML tag that allows me to make a section of page scrollable.

From my great diagram of a page:

_____________________
|............................... |
| The page................ |
|................................ |
|.... ___________ ..... |
|... | Scroll HTML|..... |
|... | Only HERE |..... |
|... |___________|..... |
|.................................|
|____________________|



Steve
 
steven: You can use an IFrame which would embed another web page (internal frame). The code would look something like:

Code:
<td width="400" height="271" rowspan="2" align="center" valign="top">
 <iFrame name="strFrm" align="left" valign="top" width="393" height="270" src="HUCMOD.aspx" Frameborder="0" Scrolling="No">
</iFrame>
</td>

Which appears inside a table and references the second page. Here the Scrolling is turned off, you can set it to on, and if the 2d page is larger than the rectangle represented by the IFrame, scrollbars will appear.

You can also embed, e.g., a Listbox or DataGrid, within <DIV> tags and thereby force scrolls to appear. This code would look something like (around a DataGrid which makes the latter scrollabe):

Code:
...
<div style="height:500px;overflow:auto;width:850px;">
 'place grid here (listbox, etc)
</div>
...

In this way the scrollbars are a function of the Div parameters. Hope this helps.
 
That 2nd set of code is exactly what I am looking for.

Thank you.

Steven
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top