Vetical space between two DIVs varies in IE and FF

Discussion in 'CSS' started by Roc, Mar 9, 2007.

  1. #1
    The vertical space between the footer div and the above content div varies. Its more in IE7 than in FF2. The FF one is right for me, needless to say. In fact I wanted it to be between the two extremes.
    Anyway I am dead sick of pleasing both browsers so I ask you all to help me.

    Attaching the error image of both browser and also the html and css file.
     

    Attached Files:

    Roc, Mar 9, 2007 IP
  2. coolguy123

    coolguy123 Guest

    Messages:
    59
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Set all margins & padding to zero.. and then add as required!!!
     
    coolguy123, Mar 9, 2007 IP
    Roc likes this.
  3. Roc

    Roc Active Member

    Messages:
    105
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #3
    thanks a lot.. it was pretty simple. Could easily identify the miscreant tag and changed its margin to 0. all fine now
     
    Roc, Mar 10, 2007 IP
  4. Roc

    Roc Active Member

    Messages:
    105
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Another question.
    I have made a vertical navigation unit, and to make the complete block clickable I have used
    li a {
    display:block;
    }
    Code (markup):
    Now without this style the nav unit is constructed perfectly fine in both IE and FF. But when I use this style then there is a spacing between elements in IE7.

    Is there a way to correct this or another way to make the whole block containing the link clickable.

    Have attached the error image.
     

    Attached Files:

    Roc, Mar 11, 2007 IP
  5. bacanze

    bacanze Peon

    Messages:
    2,419
    Likes Received:
    127
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Could you post the CSS please :)
     
    bacanze, Mar 11, 2007 IP
  6. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #6
    kk5st, Mar 11, 2007 IP
  7. Roc

    Roc Active Member

    Messages:
    105
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #7
    THanks, I appreciate when people teach me to fish myself. :D

    Thanks but I'll get back to you if I cant fish :p

    EDIT- none of the methods worked perfectly fine for me but I managed to make a workaround with the display:inline-block and diplay:block method. Thanks everyone for the help and be tuned for more queries as I proceed with the site development. :p
     
    Roc, Mar 13, 2007 IP
  8. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #8
    Looks as if you managed to catch the limit. :)

    cheers,

    gary
     
    kk5st, Mar 13, 2007 IP