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.

Best practice for placing 336 ads on a site

Discussion in 'Placement / Reviews / Examples' started by MisterZee, Sep 29, 2005.

  1. #1
    Google says their best performing ad is the 336x one. I'd like to know how you place the ad so it looks nice. Sure you could use something like layouts.com, but that's a bit too obvious. Something that takes up a nice part of the page but kind of to the right. Do you use the div align="right"? Can someone put the code up? Just learning css now.
     
    MisterZee, Sep 29, 2005 IP
  2. Kokaroach

    Kokaroach Peon

    Messages:
    88
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Put your code inside a

    <div id="adsense-block">
    336X280 ad block here
    </div>

    Then in the head of your pages use this:

    <style type="text/css">
    #adsense-block: {float: right; padding: 0 0 8px 10px;}
    </style>

    That will float the adsense block to the right so your text wraps around it, plus leaves a small padding to the left and underneath so your text doesn't flow right up to it.

    K
     
    Kokaroach, Sep 29, 2005 IP
  3. MisterZee

    MisterZee Peon

    Messages:
    227
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you!
     
    MisterZee, Sep 29, 2005 IP
  4. MisterZee

    MisterZee Peon

    Messages:
    227
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    similar question. I float something left for text to flow around it. But then I need the next paragraph to have a space and show up before the image. Now it is starting next to the image and 5 <br> and <p> won't do the trick. How do I clear the line if you know what I mean?
     
    MisterZee, Sep 29, 2005 IP
  5. longroad

    longroad Well-Known Member

    Messages:
    1,645
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    155
    #5
    dont know what you mean, post a link
     
    longroad, Sep 29, 2005 IP
  6. MisterZee

    MisterZee Peon

    Messages:
    227
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I did have the toughest time with this. Turns out you need to remove the colon
    #adsense-block: {float: right; padding: 0 0 8px 10px;}
    should be
    #adsense-block {float: right; padding: 0 0 8px 10px;}


    Another question, what if I want two adblock units, one underneath the other floated right? I tried to just duplicate the code but the second block appeard to the left of the first one. This goes into a variable that will also be used elsewhere so I can't stick both contents into one div.
     
    MisterZee, Sep 30, 2005 IP
  7. alph

    alph Well-Known Member

    Messages:
    508
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    108
    #7
    Cool tip, I'll try that out. Thanks.
     
    alph, Sep 30, 2005 IP
  8. ElvisFan

    ElvisFan Peon

    Messages:
    213
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I use this code which is very simple

    <div style="float: right; margin: 3px 3px 3px 3px;">
    ADD ADSENSE CODE HERE
    </div> NEED A SPACE FOR NEXT PARAGRAPH ADD <br>

    You can change the code to align left or right by simply changing the right to left.

    Works great...

    Should you wish to align any adsense code left - right - center just add this code

    <div align="center"> ADD ADSENSE CODE </div>
     
    ElvisFan, Sep 30, 2005 IP
  9. randymorin

    randymorin Peon

    Messages:
    387
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #9
    too bad there's no float:center :)
     
    randymorin, Sep 30, 2005 IP
  10. MisterZee

    MisterZee Peon

    Messages:
    227
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Perfect, I'm beginning to get a handle.
     
    MisterZee, Sep 30, 2005 IP
  11. TooHappy

    TooHappy Guest

    Messages:
    504
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #11
    This works, no question about it!
     
    TooHappy, Sep 30, 2005 IP
  12. dougadam

    dougadam Active Member

    Messages:
    495
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #12
    dougadam, Oct 1, 2005 IP