Floating an AdSense Block - Me vs. Internet Explorer

Discussion in 'CSS' started by Will.Spencer, Sep 14, 2006.

  1. #1
    I'm experimenting with CSS layout options to maximize CTR and CPM.

    I am working with (against?) CSS on a pre-production domain, Expat Intelligence.

    This page looks the way I want it to look in Firefox. However, in Internet Explorer the AdSense float isn't working as I want it to.

    The AdSense block is in a CSS section called embedded, which is in another CSS section called center.

    
    #center {
            width:570px;
    }
    
    #embedded {
            float:right;
            width:336px;
    }
    Code (markup):
    In Firefox, embedded and center share the same horizonal space. In IE, center doesn't start until below the bottom of embedded.

    The usual advice from Curing Float Drops and Wraps doesn't seem to apply.

    I've tried quite a few different things, but none seem to be the right thing. This code is so simple; I am certain that I have not found a "new" IE bug. I must just be missing something fairly straightforward.

    Does anyone have a clue as to what that might be?
     
    Will.Spencer, Sep 14, 2006 IP
  2. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #2
    I made it work by cheating. I used a table for layout. :eek:
     
    Will.Spencer, Sep 14, 2006 IP
    Arnie likes this.
  3. phree_radical

    phree_radical Peon

    Messages:
    563
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Does it work if you put the embedded section before the center section in the html?
     
    phree_radical, Sep 16, 2006 IP