Aligning Adsense JS code

Discussion in 'HTML & Website Design' started by dcristo, Jul 10, 2005.

  1. #1
    Without having to create a table, and inserting the text in one column, and the adsense code in the other column, is there a way to align an adsense block so you have the text aligned against the adsense block?

    Cheers
     
    dcristo, Jul 10, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    You could use a <div> I would think...
     
    digitalpoint, Jul 10, 2005 IP
  3. dcristo

    dcristo Illustrious Member

    Messages:
    19,796
    Likes Received:
    1,201
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    5
    #3
    So would you include both the text and adsense code within the same div tag or no? Also, what attributes would you use for the div tag?

    Cheers
     
    dcristo, Jul 10, 2005 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    Yep, that's how I would do it.
     
    digitalpoint, Jul 10, 2005 IP
  5. dcristo

    dcristo Illustrious Member

    Messages:
    19,796
    Likes Received:
    1,201
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    5
    #5
    Cool thanks I got it sorted. The problem was I had to use two separate div tags, to separate the text from the adsense code. Then it was just a matter of setting the adsense div tag attribute in CSS to align to the right.
     
    dcristo, Jul 10, 2005 IP
  6. thecomputergeek247

    thecomputergeek247 Guest

    Messages:
    20
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You could also use some CSS coding.
     
    thecomputergeek247, Jul 12, 2005 IP