Results 1 to 2 of 2

Thread: Overcoming Google Ads (and similar ad systems)

  1. #1
    Senior Member
    Join Date
    Jan 2004
    Posts
    199

    Overcoming Google Ads (and similar ad systems)

    Overcoming Google Ads (and similar ad systems)

    So you fancied putting a site on the net! Cash strapped you signed up to a free website provider, but wait a minute, what is that?, they have stuck stupid adverts all over your website. Don't put up with it, fight back with CSS.

    Advert code like the new google ads are embedded into your website html code server-side so there is nothing you can do right ? Wrong! With the use of CSS you are able to give absolute positioning to elements on your site. This mean that you will be able to place tables, images, text etc over any embedded adverts thereby covering them up and getting 100% of your webpage back.

    The follow code ........

    <table style="position: absolute; top:0px; left:0px" cellpadding=0 cellspacing=0 height=100% width=100% background="MyBackground.jpg">
    <tr>
    <td>
    &nbsp
    </td>
    </tr>
    </table>

    ...... will place a table over the whole page, covering up any ads placed by your provider. The "background" tag target can be changed to any image that you wish to have as the background, or if you just wanted a plain coloured background you could remove the background tag and replace it with a "bgcolor=white" tag, changing the colour to any that you wish.

    Next the code ........

    <table style="position: absolute; top:0px; left:0px" cellpadding=0 cellspacing=0 height=100% width=100% bgcolor=red>
    <tr>
    <td>
    <b>Hello World</b> <!-- Start building your normal website here //-->
    </td>
    </tr>
    </table>

    ...... will place another table over your background table. This will allow you to start building your site as normal, but this time without the adverts. 100% of the space is yours!

    Hope you find this useful .... Good Luck!
    -

  2. #2
    Senior Member
    Join Date
    Aug 2003
    Posts
    1,018
    Interesting little tut... although I'm not sure how long you would have a web site if your provider found out you were doing that. I can think of one free provider that includes in terms of service that you agree to allow them to place advertising on your site... basically you are robbing them of their right to advertise on their own server??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •