PDA

View Full Version : DIV Scrollbar help-ish.


shtick
01-08-2007, 07:56 PM
Alright, so I've got a scrollbar, and it WORKS perfectly, but sadly the text is too close the the scroll bar, which makes it a bit more difficult to read once the word is next to the scroll bar.

<div id=left style="position:absolute;z-index:2;top:650;left:316;
width:200;height:130;overflow:auto;cursor:crosshair">
blahblahblah blahblahblah blahblahblah
blahblahblah blahblahblah blahblahblah
blahblahblah blahblahblah blahblahblah
blahblahblah blahblahblah blahblahblah
blahblahblah blahblahblah blahblahblah
blahblahblah blahblahblah blahblahblah
blahblahblah blahblahblah blahblahblah
blahblahblah blahblahblah blahblahblah
blahblahblah blahblahblah blahblahblah
</div>

Basicly, this code runs perfectly, but the last 'h' in "Blah" is too close to the scrollbar then desired. I'm wonder if there is a way to clip the text earlier to prevent the text to get too close to the scroll bar, perferrably around 5-8 pixles...?

Thanks for reading and answering.

whizard
01-08-2007, 08:06 PM
Try adding padding-right:5px; to your style declaration for the div

Dan

shtick
01-08-2007, 08:09 PM
Gah! Genius.

I totally forgot about that, I have NO idea how. Its been awhile since I've worked with HTML, thanks again.

whizard
01-08-2007, 08:11 PM
We all have our moments... ;)

Anyway, glad you got it fixed!

Dan