View Full Version : Disable Horizontal Scrolling


Shawn Badyk
07-15-2003, 07:11 AM
Hi, is there anything that will disable horizontal scrolling within a frame while keeping vertical scrolling? I know there is a way to turn scrolling off altogether, but I don't want that, I just want to disable horizontal scrolling and I want vertical scrolling to work.

I don't think there is any function that can disable horizontal scrolling, but who knows there might be & if there isn't one, then there should be x-(

pb&j
07-15-2003, 03:29 PM
add this to your starting BODY tag of the page being shown within the frame area...

style="overflow-x:hidden;"

smh2k1989
07-15-2003, 05:33 PM
Is that code the same for i-frames? Cause i tried it on my inline frame and it wouldn't work :(

MaGiCSuN
07-15-2003, 07:08 PM
have you add this code:

style="overflow-x:hidden;"

into the <body> part from the pages that open INSIDE the iframe?
so it should be:

<body style="overflow-x:hidden;">

either way, i wouldn't suggest setting off the horizontal scrollbar, becaue the reason why you get the extra scrollbar is because your content is to width. so just make the width smaller (like if you have textarea's or anything like that on the page) untill the scrollbar dissapears.

Love,
Mirna