Layout Problem

Discussion in 'CSS' started by Voasi, Mar 29, 2006.

  1. #1
    If you could take a look at this in both IE and FF that would be great - www.dogtreatsgalore.info (CSS is here - www.dogtreatsgalore.info/styles.css )

    I can't seem to figure out how to get IE to look like the FF version. When I remove the...

    margin-left: 80px

    ...from #contentright it looks fine in IE, but then in FF it pushes it up to where the adsense block is going to be.

    Any suggestions or work-arounds would be great!

    Thanks
     
    Voasi, Mar 29, 2006 IP
  2. Voasi

    Voasi Active Member

    Messages:
    1,054
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    88
    #2
    Its

    margin-top: 80px;

    that I'm having a problem with. There is no margin-left: 80px
     
    Voasi, Mar 30, 2006 IP
  3. SoxFan

    SoxFan Peon

    Messages:
    90
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can create an IE only selector like:

    * html #selector {
    margin-top: 0;
    }

    This way, in IE you will not have a margin, but in Firefox the margin will still be applied.
     
    SoxFan, Mar 31, 2006 IP