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.

Cant figure out the spaces.

Discussion in 'HTML & Website Design' started by mightyb, Mar 2, 2006.

  1. #1
    If you have a look at http://www.blogreporter.biz you will see spaces between the adsense code on the left hand side and the two images on top and bottom. It works fine in FF but not IE.

    The code is:

    <div id="adsense">
    <img src="/img/googletop.gif"/>
    ##ADSENSE CODE##
    <img src="/img/googlebottom.gif"/>
    </div>
    </div>
    </div>
    </div>
    <div id="center">
    <div class="block">
    <div class="block-content">

    CSS is:

    #adsense {
    margin-left: 0x;
    }

    I thought this might be the imag border but img { border: none ; } did not work.

    Any ideas guys? Thanks!
     
    mightyb, Mar 2, 2006 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Not tested.

    try img {vertical-align: bottom;}.

    You really should correct the html errors. Debugging invalid html does not yield consistent results.

    cheers,

    gary
     
    kk5st, Mar 2, 2006 IP
  3. mightyb

    mightyb Banned

    Messages:
    6,566
    Likes Received:
    405
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yea, its quite a mess. Il have to go through the whole thing at some point. Il give v align a try in a sec. Ta!
     
    mightyb, Mar 2, 2006 IP
  4. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #4
    Try this and make sure the white corners on the images are white and not clear:

    #adsense {
    margin-left: 0x;
    background:#ccffcc;
    }
     
    jestep, Mar 2, 2006 IP
    mightyb likes this.
  5. mightyb

    mightyb Banned

    Messages:
    6,566
    Likes Received:
    405
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Sorted! Thanks a lot!
     
    mightyb, Mar 2, 2006 IP