Margin top problem

Discussion in 'HTML & Website Design' started by Olivier Duval, Oct 13, 2007.

  1. #1
    Oh my good !
    I have a problem in my new web-site.
    The css cmd margin-top:XXpx is no very good in FireFox :(

    Look here --> /*www.codeurconcept.com*/
    (no backlink to this website, it's in work)

    PS :
    My web page is valid HTML and CSS (w3c)

    Do you have solution ?
     
    Olivier Duval, Oct 13, 2007 IP
  2. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #2
    Try this:
    #header{position:absolute;width:838px;*width:256px;min-width:838px;height:256px;padding:0;background-color:#ffffff;margin-top:15px;}

    Or

    #header{position:absolute;top:15px;width:838px;*width:256px;min-width:838px;height:256px;padding:0;background-color:#ffffff;margin:0px;}
     
    Colleen, Oct 13, 2007 IP
  3. Olivier Duval

    Olivier Duval Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank, but no change...
     
    Olivier Duval, Oct 13, 2007 IP
  4. eruct

    eruct Well-Known Member

    Messages:
    1,189
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    108
    #4
    try changing it to padding-top:12px; instead of margin-top

    on another note, your style sheet is a mess.
     
    eruct, Oct 13, 2007 IP
  5. Olivier Duval

    Olivier Duval Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It's OK, Thank ;)
     
    Olivier Duval, Oct 13, 2007 IP