Page 1 of 1

[PHP] - How to hide scrollbar in iframe / whole page

Posted: Sun Nov 27, 2011 6:05 pm
by Sethioz
Webpage php / html
you have to add the following between "head" tags on your page where you want to hide scrollbars

Code: Select all

overflow:hidden;
here's full example:

Code: Select all

<head>
<style type="text/css">
html {
overflow:hidden;
}
</style>
</head>
IFRAME
scrollbars will be hidden if following line is in present: (inside of iframe tags ofcourse)

Code: Select all

scrolling="no"
but it never worked for me, at least thats what i tought at first. scrollbars still appeared whenever page was larger than iframe, however overflow:hidden worked fine. i added it insde of the page which was put inside of iframe.

reason why scrolling="no" did not work for me, is that these scrollbars are not from iframe, they appear, because the page inside of iframe gets squashed and then that page shows scrollbars, so if you use overflow:hidden in the page that will be put inside of iframe and then use scrolling="no" on iframe, then you can be sure there will be no scrollbars.

Re: [PHP] - How to hide scrollbar in iframe / whole page

Posted: Sat Feb 25, 2012 6:05 pm
by akopertoni73
hi , i wanted to know if there is any software that injects iframe into other pages (not yours) , if not ,are there any simple ways for injecting the ifreme manually ?

Re: [PHP] - How to hide scrollbar in iframe / whole page

Posted: Sat Feb 25, 2012 10:48 pm
by Sethioz
you just open the file with notepad++ and put iframe where you want it, there is not software to "inject" source codes.
php/html is not something like a game where you inject stuff. on my site i just go to admin panel and edit the page from there.

if you talking about hacking website with iframe, then its wrong topic.