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

c, c++, php, html, sql ..etc discussion. also includes codes and source codes.

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

Postby Sethioz » Sun Nov 27, 2011 6:05 pm

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.
User avatar
Sethioz
Admin
Admin
 
Posts: 4754
Joined: Fri Jul 27, 2007 5:11 pm
Location: unknown

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

Postby akopertoni73 » Sat Feb 25, 2012 6:05 pm

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 ?
akopertoni73
Newbie..
Newbie..
 
Posts: 8
Joined: Sat Dec 03, 2011 4:43 pm

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

Postby Sethioz » Sat Feb 25, 2012 10:48 pm

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.
User avatar
Sethioz
Admin
Admin
 
Posts: 4754
Joined: Fri Jul 27, 2007 5:11 pm
Location: unknown


Return to Programming / Coding / Debugging

Who is online

Users browsing this forum: No registered users and 5 guests