1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

AdSense Within <DIV>

Discussion in 'HTML & Website Design' started by hans, Mar 21, 2004.

  1. #1
    if you like to add Google Adsense witout table on the right
    hence with the least changes to each page ..

    add to external style sheet something like ( or exactly ):

    -------- snip

    div.google {
    float : right;
    margin-left: 2em;
    width : auto;
    }

    --------- snap

    and then place the Adsense code between the div tag as shown below

    <div class="google">

    <!-- here you place the Google Adsense-code -->

    </div>

    this combination of <div>- tag+google code can then be placed on any line you want to have the vertical ads

    right on top of page or below H2 or below a pic .. where ever you insert the div - there on same level ON THE RIGHT floating is the Google adsense

    that saves the otherwise often used tables and creates only minimal work to add the Google Adsense-code to any number of pages any place you like - to the right ..
     
    hans, Mar 21, 2004 IP
  2. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #2
    Did you figure this out? Let me know. :D
     
    Colleen, Jul 25, 2006 IP
  3. i_am_dhaval

    i_am_dhaval Well-Known Member

    Messages:
    1,364
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    138
    #3
    is it agains the Adsense TOS????
     
    i_am_dhaval, Jul 25, 2006 IP
  4. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That's within the TOS, because it does not change the actual adsense code. As long as you leave the code intact when you paste it inside the division, it's fine (assuming you aren't doing anything else to affect it like forcing it to open in a new windows, etc.).
     
    Gordaen, Jul 25, 2006 IP
  5. ravianz

    ravianz Notable Member

    Messages:
    1,536
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    250
    #5
    i dont think it is against TOS coz by using this technique you are only adjusting placement of the ad unit; you can not play with you adsense code anyway!
     
    ravianz, Jul 25, 2006 IP
  6. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #6
    K-rad, you guys are TOTALLY awesome! Who cares about TOS, fock the rules, get away with it while you can!!
     
    Colleen, Jul 25, 2006 IP