Chris_J_W
02-06-2005, 10:48 PM
Hi,
I've just got a scrolling div set up in a page I"m working on, and am wondering if there's a way (without using another nested div) to add some spacing between the text and the scrollbar? The relevant code is as follows...or a better way to do this...I can't really change the padding etc on the TD without screwing up the layout of the site (it's a bit ugly)
HTML:
<TD class="content">
<div class="content"><div style="margin-right: 10px;">
A Whole heap of text that will need scrolling when there's too much here.
</DIV></DIV>
</TD>
CSS:
TD.content {
width: 360px;
height: 425px;
background-color: #E0E0DE;
padding: 10px;
vertical-align: top;
text-align: justify;
}
DIV.content {
height: 425px;
overflow: auto;
text-align: justify;
}
Thanks for any help! :)
I've just got a scrolling div set up in a page I"m working on, and am wondering if there's a way (without using another nested div) to add some spacing between the text and the scrollbar? The relevant code is as follows...or a better way to do this...I can't really change the padding etc on the TD without screwing up the layout of the site (it's a bit ugly)
HTML:
<TD class="content">
<div class="content"><div style="margin-right: 10px;">
A Whole heap of text that will need scrolling when there's too much here.
</DIV></DIV>
</TD>
CSS:
TD.content {
width: 360px;
height: 425px;
background-color: #E0E0DE;
padding: 10px;
vertical-align: top;
text-align: justify;
}
DIV.content {
height: 425px;
overflow: auto;
text-align: justify;
}
Thanks for any help! :)