what is the code for putting three google ads side by side?

Discussion in 'CSS' started by seotyro, Jun 24, 2009.

  1. #1
    My site has been created in css. I want to put three Google ads Large Rectangle (336 x 280) side by side, all three ads in single row. Please suggest what code should i use to make this possible?
     
    seotyro, Jun 24, 2009 IP
  2. Nandamuri

    Nandamuri Peon

    Messages:
    665
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can use table to that.....
    <table>
    <tr>
    <td>Google code 1</td>
    <td>Google Code 2</td>
    <td>Google code 3</td>
    </tr>
    </table
    >
     
    Nandamuri, Jun 24, 2009 IP
  3. bigroddy

    bigroddy Peon

    Messages:
    78
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    float them all left within a div and be sure to clear after...
     
    bigroddy, Jun 25, 2009 IP
  4. seotyro

    seotyro Member

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    Hi bigroddy, Can you tell me the complete code as I am not very expert at css?
     
    seotyro, Jun 25, 2009 IP
  5. Istvan

    Istvan Well-Known Member

    Messages:
    1,544
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    175
    #5
    I think something like this should work
    
    <div style="width:1008px;">
    <div style="width:336px; float:left">ad1</div>
    <div style="width:336px; float:left">ad2</div>
    <div style="width:336px; float:left">ad3</div>
    </div>
    <div style="clear:both">&nbsp;</div>
    
    Code (markup):
    (*not tested)
     
    Istvan, Jun 26, 2009 IP