Div float:left in Firefox

Discussion in 'CSS' started by +:::Spider25:::+, Jul 5, 2006.

  1. #1
    Hi, I have a proble with a popup window in Firefox. I putted this code:

    body{margin:0}

    Now there is no blank spaces as borders, this is good , but my first div have:
    float:left; width:xx; height: xx

    The result is a blank space over this div, and this is only for Firefox, IE shows it fine

    Help me If you can, thanks

    Spider
     
    +:::Spider25:::+, Jul 5, 2006 IP
  2. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #2
    padding:0?

    Can't really tell without seeing your site/code.
     
    AdamSee, Jul 5, 2006 IP
  3. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #3
    The Moz default style sheet calls for a list to have 1em margin, top and bottom.
    
    ul, menu, dir {
      display: block;
      list-style-type: disc;
      margin: 1em 0;
      -moz-padding-start: 40px;
    }
    Code (markup):
    You may set it as you please.

    cheers,

    gary
     
    kk5st, Jul 5, 2006 IP
  4. +:::Spider25:::+

    +:::Spider25:::+ Peon

    Messages:
    69
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks a lot :)
     
    +:::Spider25:::+, Jul 12, 2006 IP