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.

How to put two 300x250 ads next to each other

Discussion in 'Placement / Reviews / Examples' started by alexplank, Apr 8, 2006.

  1. #1
    I'd like to put two medium rectangle ads next to each other (i.e. on the same line -- not on separate lines).

    I want to put an Adsense ad on the left and a Tribal Fusion on the right. How would I go about doing this without having the problem of the two ads.

    Here is an example (from daniweb.com) of what I mean:

    [​IMG]
     
    alexplank, Apr 8, 2006 IP
  2. SportsOutlaw

    SportsOutlaw Active Member

    Messages:
    952
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    70
    #2
    Put them in a 1 row, 2 column table.
     
    SportsOutlaw, Apr 8, 2006 IP
  3. MediaHustler

    MediaHustler Peon

    Messages:
    1,860
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try <nobr> tags at the front of first 300x250 code
    and </nobr> behind the ending of the 2nd 300x250 code.

    nobr = no break
     
    MediaHustler, Apr 8, 2006 IP
  4. mads

    mads Active Member

    Messages:
    649
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #4
    I have two such ads next to each other.
    http://www.offshoremerchantaccountcentral.com
     
    mads, Apr 9, 2006 IP
  5. sligowaths

    sligowaths Peon

    Messages:
    172
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Here is how I did:

    Code (Text):
    1.  
    2. <div id="ads" style="clear:both;padding-top:15px;">
    3. <div style="float:left;">
    4. <!-- adsense code -->
    5. </div>
    6. <div>
    7. <!-- adsense code -->
    8. </div>
    9. </div>
    10.  
     
    sligowaths, Apr 9, 2006 IP
  6. Shamims

    Shamims Greenhorn

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #6
    <div align="center">
    <center>
    <table border="0" cellpadding="3" cellspacing="3" style="border-collapse: collapse" width="400">
    <tr>
    <td>
    <p align="center">ADSENSE</td>
    <td>
    <p align="center">ADSENSE</td>
    </tr>
    </table>
    </center>
    </div>
     
    Shamims, Jul 27, 2010 IP
  7. palmerlarryray

    palmerlarryray Active Member

    Messages:
    158
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    55
    #7
    just put them on the same line in your html code but put "&nbsp;" between them


    for instance < center> <adcode1>&nbsp;<adcode2> </center>


    If you need more space between them, add an extra &nbsp; for no space between them, eliminate the &nbsp; completely
     
    palmerlarryray, Jul 27, 2010 IP
  8. Chuckun

    Chuckun Well-Known Member

    Messages:
    1,161
    Likes Received:
    60
    Best Answers:
    2
    Trophy Points:
    150
    #8
    use css floats, not tables...

    CSS is much neater (and easier!)

    <div style="float:left;">
    <!-- Ad1 -->
    </div>
    <div style="float:right;">
    <!-- Ad2 -->
    </div>

    YOu might want to remove the second div all together and just put both ad codes within the same float left div.. That might work better, im unsure.. I find I have to do some trial and error with floats!

    Chuckun
     
    Chuckun, Jul 27, 2010 IP