Forum Moderators: not2easy

Message Too Old, No Replies

annoying horizontal scroll

how to get rid of horizontal scroll

         

thehelper

6:04 am on Feb 17, 2006 (gmt 0)

10+ Year Member



Hi
I am trying to get rid of Horizontal scroll

here is the code
<div style="height:600;width:405px;overflow:auto">

the frame is smaller than the box around it

DrDoc

6:07 am on Feb 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



which one has the scroll bar?

you can always change it to

overflow: hidden

thehelper

7:24 am on Feb 17, 2006 (gmt 0)

10+ Year Member



if i put in hidden won't it hide both horizontal and vertical?

kaled

11:08 am on Feb 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This might better be discussed in the CSS forum.

I think you can use overflow-x but I'm not sure how widely supported it is.

Kaled.

SuzyUK

11:29 am on Feb 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



perhaps there is there something inside that div which is wider than say 380px (leave room for vertical scrollbar) and that cannot break/wrap like an image or a long url? ~ this would cause a horizontal scroll bar

and btw.. unrelated, but in case it's not a typo you would need "px" on that height too or it will not be honoured