Is there a command, line, or code within the php to cover up hosting banner on free hosting?
I'm using GoDaddy. I got a 2 column CSS script from some site and my header cover up the ads/banner which i like a lot.
I'm not sure which part of the script that actually does that. Maybe the overflow:hidden or position:absolute?
It sure does the trick tho, I just wish I could do it with php.
Cover Hosting Ads Banner
Moderator: mkoch227
I can't tell you for sure (not tested it) but i think it is
In #head and #head2 it is position:absolute; in combination with top:0; which places those at the top of your page.
And the z-index:5 makes sure it hovers over the ads.
If you don't want to cover the ads. Change the top:0 to the height of the ads (top:100px;)
Make sure to also change
#content {top:100px;} to #content {top:200px;}
and
#left {top:100px;} to #left {top:200px;}
or the left column and the content will be covered by your head
Greetings,
Henrie
In #head and #head2 it is position:absolute; in combination with top:0; which places those at the top of your page.
And the z-index:5 makes sure it hovers over the ads.
If you don't want to cover the ads. Change the top:0 to the height of the ads (top:100px;)
Make sure to also change
#content {top:100px;} to #content {top:200px;}
and
#left {top:100px;} to #left {top:200px;}
or the left column and the content will be covered by your head
Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
-
- Posts: 7
- Joined: Wed Feb 04, 2009 2:52 pm
PHP is just a scripting language. I don't know a way to cover it with pure PHP functions (don't think it is possible).
PHP is mostly just a way to gather dynamic content and present it to the viewer, for which html and css is used in webpages.
I am not sure why you don't want to use css. I don't know what you want to accomplish by using PHP-functions instead of css. They are totally different, PHP is used for gathering and manipulating information while css is used for styling information (and html is used for displaying information).
So i hope my answer is the right answer to your question.
Greetings,
Henrie
PHP is mostly just a way to gather dynamic content and present it to the viewer, for which html and css is used in webpages.
I am not sure why you don't want to use css. I don't know what you want to accomplish by using PHP-functions instead of css. They are totally different, PHP is used for gathering and manipulating information while css is used for styling information (and html is used for displaying information).
So i hope my answer is the right answer to your question.
Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
-
- Posts: 7
- Joined: Wed Feb 04, 2009 2:52 pm
I am using html/css. As mentioned earlier it does me really good. When it comes to Guestbook, Picture view and etc, all those are in php instead of html extension. That would be great if i can find a script in html format. Does that make sense at all? As I researched, it seems like the only way to have php in a html page is to embed which i did with iframe.
Look at the difference:
HTML/CSS : www.cavanh.com ......................banner is hidden behind.
PHP: www.cavanh.com/guest.html ............ banner is shown in embedded.
PHP: www.cavanh.com/guestbk/gbook.php
Look at the difference:
HTML/CSS : www.cavanh.com ......................banner is hidden behind.
PHP: www.cavanh.com/guest.html ............ banner is shown in embedded.
PHP: www.cavanh.com/guestbk/gbook.php
No, it can't be done with PHP. And please no more talking about things that break your hosts' terms of service.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools