How to get the rid of little margin in Firefox and Chrome

Discussion in 'HTML & Website Design' started by Ojasvi Bhargava, Nov 4, 2010.

  1. #1
    Hi Guys,
    My blog works fine in IE without extra margins in my widgets (i.e. sidebars and Adsense below post and above posts.)
    In Firefox n Chrome a little margin appears on my blog in widgets that i have no idea where it cames (i dont see any code related to it my blog html) and also the margin is just about 3px but when i try to remove it manually (by adding margin:-3px in css) then margin gets removed in Firefox and Chrome but in IE widget cutted off from bottom part.

    Any Suggestion on how to get the rid of this annoying margins?
     
    Ojasvi Bhargava, Nov 4, 2010 IP
  2. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #2
    You are using IE as your reference for how things should work. Notice the far more modern browsers are acting the same. This should tell you why we never "fix" Firefox or Chrome.

    Try setting the vertical-align property to baseline, or bottom. Only guessing without a link.
     
    drhowarddrfine, Nov 4, 2010 IP
  3. Ojasvi Bhargava

    Ojasvi Bhargava Peon

    Messages:
    345
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i have the link in my signature to my site i referring to.
     
    Ojasvi Bhargava, Nov 4, 2010 IP
  4. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #4
    You set the line-height to 1.4em but give the <ins> a height of 15px. IE is ignoring you while the modern browsers are displaying what you wrote. Don't have time to look into this.

    Also, there is no such element as <nobr>
     
    drhowarddrfine, Nov 4, 2010 IP
  5. Ojasvi Bhargava

    Ojasvi Bhargava Peon

    Messages:
    345
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    @above, i dont have a gr8 knowledge of html so i am not really getting your point.
     
    Ojasvi Bhargava, Nov 4, 2010 IP
  6. Ojasvi Bhargava

    Ojasvi Bhargava Peon

    Messages:
    345
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    anyone can help on this issue?
     
    Ojasvi Bhargava, Nov 4, 2010 IP
  7. Ojasvi Bhargava

    Ojasvi Bhargava Peon

    Messages:
    345
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    i have line height set of 17px (1.7 em) not 14px.
    and i dont know what ins tag is about.
     
    Ojasvi Bhargava, Nov 4, 2010 IP
  8. Ojasvi Bhargava

    Ojasvi Bhargava Peon

    Messages:
    345
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    i need help from an expert on this issue.
    ASAP!
     
    Ojasvi Bhargava, Nov 5, 2010 IP
  9. Nythe

    Nythe Peon

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Its possible that the problem is not with the margin, in which case its probably padding. Try setting the CSS padding property to 0 and see if that changes anything. Also, if you are using a table to display your site, change the cellpadding attribute or cellspacing attribute to 0 and see the changes.
     
    Nythe, Nov 5, 2010 IP
  10. Ojasvi Bhargava

    Ojasvi Bhargava Peon

    Messages:
    345
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    @above, its not padding either.. i tried setting both padding as well as margins to zero of the widget element but no luck and also there is no cell padding in my coding anywhere.
     
    Ojasvi Bhargava, Nov 6, 2010 IP