Thread: Scroll bar code
View Single Post
Old 04-15-2004   #4 (permalink)
malboroman
Registered User
 
malboroman's Avatar
 

Join Date: Nov 2003
Location: The Netherlands
Posts: 603

Send a message via MSN to malboroman Send a message via Skype™ to malboroman
you can't get a scrollbar in table... (this is a thing I learned here at biorust)
You can... however get a div to scroll.

you have to this code...

Code:
.scrolldiv {
overflow-x: hidden;                       //gets rid of the horizontal scrollbar
overflow: scroll;                            //if the content get too big, the scrollbar appears
width: 200px;                               //sets the width
height: 400px;                             //sets the height
visibility: visible;                          //makes it visible
scrollbar-3dlight-color: #000000;
scrollbar-arrow-color: #FFFFFF;
scrollbar-base-color: #000000;
scrollbar-darkshadow-color:#000000;
scrollbar-face-color: #000000;
scrollbar-highlight-color: #000000;
scrollbar-shadow-color: #000000;
}
Then in the table you want to scroll you put this code:

Code:
<table>
<tr>
<td><div class="scrolldiv">.::content goes here::.</div></td>
</tr>
</table>
You can also place it outside the table and position it with CSS, but this is the easier way. You also have to change the width and height to your likings...

I hope I have made clear for you, if you still have any probs just ask it here. I'm sure anyone who can help, will help...
__________________


"Only the dead have seen the end of war."

- Plato
malboroman is offline