Hack Forums
jQuery & scrollbar - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Webmasters (https://hackforums.net/forumdisplay.php?fid=141)
+---- Forum: Website Construction (https://hackforums.net/forumdisplay.php?fid=50)
+---- Thread: jQuery & scrollbar (/showthread.php?tid=4045531)



jQuery & scrollbar - Toastman49 - Feb 6, 2014

http://www.ampsclothing.com/

So I took a swf, converted it to html 5 via some online converter (so iphone & ipads can see it) and it disables my scrollbar. Any way to fix this?


* - incogneat0 - Feb 6, 2014

It itsn't the flash that is doing that...

You need to make sure that on your body tag you take off the "overflow:hidden;"

Code directly from your site that is preventing scrolling:
Code
<body style="margin: 0; overflow: hidden"><div id="wrapper" style="display: none;">

If you just want to allow vertical scrolling (up and down) but prevent horizontal scrolling (left to right) then just change it to:
Code
<body style="margin: 0; overflow-x: hidden; overflow-y: scroll"><div id="wrapper" style="display: none;">



* - Toastman49 - Feb 7, 2014

(Feb 6, 2014 11:13 PM)incogneat0 Wrote:  It itsn't the flash that is doing that...

You need to make sure that on your body tag you take off the "overflow:hidden;"

Code directly from your site that is preventing scrolling:
Code
<body style="margin: 0; overflow: hidden"><div id="wrapper" style="display: none;">

If you just want to allow vertical scrolling (up and down) but prevent horizontal scrolling (left to right) then just change it to:
Code
<body style="margin: 0; overflow-x: hidden; overflow-y: scroll"><div id="wrapper" style="display: none;">

And it worked! Thanks dude appreciate it a whole lot! would def rep u if i could lol


* - incogneat0 - Feb 7, 2014

All good brother! The thanks is all I ask for! Glad I could help.