Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Margin Height in Body Properties Not Working in Firefox...

    Hi there,

    I'm having a problem... in my body tag the typical properties, topmargin="0" marginheight="0" work fine in IE, but not in firefox.

    I have an image i want to be right at the top of my homepage... to flush perfectly with the background image. It looks fine in IE, but not in Firefox.

    Any suggestions. I tried css but it didn't seem to work either.

    Thanks,

    ~ Steph

  • #2
    Senior Coder nikos101's Avatar
    Join Date
    Dec 2006
    Location
    London
    Posts
    1,007
    Thanks
    59
    Thanked 10 Times in 10 Posts
    Different browsers have different default paddings, margins try adding this to the top of your CSS
    Code:
    * {
    padding:0px;
    margin:0px;
    }
    you just have to manualy define the paddings etc from now on in certain cases
    Last edited by nikos101; 10-11-2007 at 10:42 AM.

  • #3
    Senior Coder nikos101's Avatar
    Join Date
    Dec 2006
    Location
    London
    Posts
    1,007
    Thanks
    59
    Thanked 10 Times in 10 Posts
    The firefox probably has a default top padding


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •