CSS Margin Problem in IE

Discussion in 'CSS' started by nile1483, Jul 13, 2010.

  1. #1
    Hi,

    i have design CSS layout but it show different margin between menu item in IE and Firefox

    please check sankalporganisers.com/beta

    ie.jpg

    ff.jpg
     
    nile1483, Jul 13, 2010 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    It's kinda late night here; not tested but try this

    set the display as inline-block for

    .chromestyle ul li {
    display:inline-block;
    }

    add property to .chromestyle ul li a

    .chromestyle ul li a {
    display:inline-block;
    height:53px; <!-- currently is set to 45px -->

    and instead padding-left:5px; use margin-left to set the gap between navigation.
     
    radiant_luv, Jul 13, 2010 IP
  3. Blue Star Ent.

    Blue Star Ent. Well-Known Member

    Messages:
    1,989
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Be careful with the horizontal padding in IE. It is rendered differently with Firefox and IE.
     
    Blue Star Ent., Jul 13, 2010 IP
  4. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #4
    Yes, as "Blue Star Ent." pointed out, gotta be careful on use of horizontal padding to avoid cross-browser issues.
     
    radiant_luv, Jul 13, 2010 IP
  5. nile1483

    nile1483 Active Member

    Messages:
    345
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #5
    Thanks your both of you, let me test it

    thanks
     
    nile1483, Jul 13, 2010 IP
  6. nile1483

    nile1483 Active Member

    Messages:
    345
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Thank you radiant_luv, prob solved with following suggestion

    .chromestyle ul li a {
    display:inline-block;
    height:53px; <!-- currently is set to 45px -->


    Thread Closed
     
    nile1483, Jul 13, 2010 IP