SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  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
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,546
    Mentioned
    183 Post(s)
    Tagged
    6 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
  •