Jump to content


Disabling Browser's scrollbars

  • Please log in to reply
3 replies to this topic

#1 Endrew

  • Members
  • PipPip
  • Member
  • 15 posts

Posted 25 June 2006 - 02:10 AM

Is it possible to hide browser's scrollbars using javascript?

#2 AndyB

  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 25 June 2006 - 02:17 AM

Good question. I wonder what Google might reveal if you searched it? I'd also wonder to my self why you want to do it - after all it's my browser you want to mess around with.
Legend has it that reading the manual never killed anyone.
My site

#3 Endrew

  • Members
  • PipPip
  • Member
  • 15 posts

Posted 25 June 2006 - 05:49 PM

I'm working on a web page which displays pictures from user upload files.
If the picture is too big , the browser will show scroll bar. So, i want to avoid that from happening even if the picture is clipped.

#4 cmgmyr

  • Members
  • PipPipPip
  • Advanced Member
  • 1,278 posts
  • LocationUSA

Posted 25 June 2006 - 05:54 PM

What you can do it put the image in a div, set a hight and width and set the overflow to hidden, then there won't be any scroll bars and the image might be clipped.

<div style="width:100px;height:100px;overflow:hidden;">Img here</div>

Just replace the px amount with the one that you want.

Hope this helped.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users