views:

288

answers:

2

I'm testing my pages in different browsers.

Opera puts a vertical scroll bar on a page. I added an overflow:hidden to the div (after trying Opera), but the scroll bar is still there. How do I get rid of it (you don't need the scroll bar to view the page).

Thanks

+1  A: 

Try following

html, body { 
  overflow: auto;
}

overflow: hidden will make the scrollbars disappear even if the window is resized.

N 1.1
Thanks. I thought that would get rid of the scrollbar on the window in the middle of the page, too - but it's still there. Thanks.
Rilien
try setting `overflow-x: hidden`
N 1.1
A: 

sadly though, you can't get rid of 1 of the scroll bars. You must have both in a Mac Opera 9.20 .... IMO Opera is garbage, dont use it and dont design for it.

Alex Miller