Aligning.

Discussion in 'HTML & Website Design' started by Jerlene.net, Jul 8, 2007.

  1. #1
    I want to align my AdSense ads with the copyright but every time I try to the AdSense is a little bit, further down.
    How do I make it so that they are perfectly aligned?

    Example:

    [​IMG]
     
    Jerlene.net, Jul 8, 2007 IP
  2. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #2
    Could you post a code snippet to show what you are doing?
     
    kentuckyslone, Jul 8, 2007 IP
  3. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    385
    #3
    I don't remember. It's been days. Something like this:

     
    Jerlene.net, Jul 8, 2007 IP
  4. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #4
    Hmm, try it like this

    <div align="right">
    AdSense Ad Script
    </div>
    <copyright>
    Words
    </copyright>
     
    kentuckyslone, Jul 8, 2007 IP
  5. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    385
    #5
    Same problem just backwards. The AdSense is now higher than the copyright.
     
    Jerlene.net, Jul 8, 2007 IP
  6. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #6
    If you wouldnt mind telling me the url where this appears (here or by PM) I will take a look at it.
     
    kentuckyslone, Jul 8, 2007 IP
  7. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    385
  8. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #8
    When I view the site the Google Ad unit is directly below the text. Did you change it? I believe I see the source of your problem though. This part:

    <div id="copyright">
    Words
    </copyright>

    Look for #copyright in the CSS style sheet. It probably has a value for padding or other similar attribute that would cause the misalignment
     
    kentuckyslone, Jul 8, 2007 IP
  9. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Kentuckyslone, the code you provided has the wrong closing tag. It should be </div> not </copyrght>.
     
    Dan Schulz, Jul 9, 2007 IP
  10. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #10
    I didnt provide that code. I copied and pasted what the original poster put in :) and forgot to change that last part, but you are correct.
     
    kentuckyslone, Jul 9, 2007 IP
  11. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I know you changed it (technically replacing it with your own), which is why I said you "provided" it. ;)

    No foul though.
     
    Dan Schulz, Jul 9, 2007 IP
  12. haruko764

    haruko764 Peon

    Messages:
    25
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Try this:

    <div style="float:left;">
    Copyright
    </div>
    <div style="float:right;">
    Adsense
    </div>
    Code (markup):
     
    haruko764, Jul 10, 2007 IP
  13. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    385
    #13
    Thanks a lot. I'll try it and see if it works.
     
    Jerlene.net, Jul 11, 2007 IP