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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Scrollbars 1

Status
Not open for further replies.

rgaetos

IS-IT--Management
Jun 14, 2006
63
US
How do I create a scrollbar in a certain cell of a table on my webpage. I want user to scroll down the cell rather than using the window's scrollbar.
 
You'll need to put a DIV inside the cell, and set the divs overflow to scroll.


Code:
.scroll_cell{
width:100%;
height:100%;
overflow:auto;
}

.
.
.


<td>[red]<div class="scroll_cell">[blue]cell content goes here.[/blue]</div>[/red]</td>

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thanks for the quick response, but I'm sort of a newbie when in comes to coding. Where to i put the:

.scroll_cell{
width:100%;
height:100%;
overflow:auto;
}
 
|That would go in your CSS either in an external file or between <style> </style> tags in the <head> section of your page.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top