Jump to content

Archived

This topic is now archived and is closed to further replies.

Endrew

Disabling Browser's scrollbars

Recommended Posts

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 [b]my[/b] browser you want to mess around with.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

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

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

Hope this helped.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.