SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Little help with a few px (FF)

  1. #1
    SitePoint Addict dreado's Avatar
    Join Date
    Jan 2005
    Location
    UK
    Posts
    221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Little help with a few px (FF)

    Hey

    Hoping someone can fill me in on why the floats, and subsequently (I think) the nav on this site are about 10px higher on all the sub pages than they are on the index page. (doesn’t happen in IE)

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    SitePoint Award Recipient Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    37,776
    Mentioned
    99 Post(s)
    Tagged
    3 Thread(s)
    Hi,

    It's the default top margin that mozilla applies to the p tag and ie doesn't. You need to control explicitly the margins and paddding of all the elements you use.

    Code:
    p {margin:0 0 1em 0;padding:0}
    That should even the display out

  3. #3
    SitePoint Addict dreado's Avatar
    Join Date
    Jan 2005
    Location
    UK
    Posts
    221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Paul

    I should really have realised that

    But it’s done the trick.

Bookmarks

Posting Permissions

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