Endrew Posted June 25, 2006 Share Posted June 25, 2006 Is it possible to hide browser's scrollbars using javascript? Quote Link to comment https://forums.phpfreaks.com/topic/12842-disabling-browsers-scrollbars/ Share on other sites More sharing options...
AndyB Posted June 25, 2006 Share Posted June 25, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/12842-disabling-browsers-scrollbars/#findComment-49241 Share on other sites More sharing options...
Endrew Posted June 25, 2006 Author Share Posted June 25, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/12842-disabling-browsers-scrollbars/#findComment-49413 Share on other sites More sharing options...
cmgmyr Posted June 25, 2006 Share Posted June 25, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/12842-disabling-browsers-scrollbars/#findComment-49415 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.