Adding 2 Adsense ads on one lane

Discussion in 'PHP' started by genchev, Mar 17, 2009.

  1. #1
    Hello,
    the title may not be really clear but I installed a wordpress theme and now I'm editing it with my Adsense ads. The problem is that I want to place 2 ads 250x250 and I want them one next to the other not under the other. When I place the codes one after the other it shows me the ad boxes one under the other and I want the one I mentioned.
    Thanks.
     
    genchev, Mar 17, 2009 IP
  2. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #2
    <div id="leftbox" style="float:left">
    <!-- Left AdSense banner goes here -->
    </div>
    
    <div id="rightbox" style="float:right">
    <!-- Right AdSense banner goes here -->
    </div>
    HTML:
     
    ActiveFrost, Mar 17, 2009 IP
  3. genchev

    genchev Well-Known Member

    Messages:
    541
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Ok, see here. That's how they are and I want them next to each other.
     
    genchev, Mar 17, 2009 IP
  4. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #4
    Yes, and that is because the adsense code it placed inside floating DIVs in the above posters proposition.

    You need to place the given adsense code inside HTML-elements that can coexist next to eachother. That means placing the adsense snippets inside floating DIVs, mainly. Give the DIVs a CSS-property of "width: 260; text-align: center;" too, and they should fit around the adsense code perfectly.
     
    PoPSiCLe, Mar 17, 2009 IP
  5. steelaz

    steelaz Peon

    Messages:
    47
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Obvious note here, make sure that both ad blocks actually can fit next to each other, perhaps containing block is not wide enough.
     
    steelaz, Mar 17, 2009 IP
    wwe_fan9417 likes this.
  6. Stylesofts

    Stylesofts Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hello,


    If you want to put those Ads side by side then you have to increase the wid of the column or div..

    The problem u are facing is due to the lack of width required for the codes to adjust side by side.

    One thing you can do..instead to putting in the left side..you can adjust it in the body..i guess it will be working as you have wished for

    Regards,

    Stylesofts Developing Team
     
    Stylesofts, Mar 17, 2009 IP