SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Member bushbass's Avatar
    Join Date
    May 2003
    Location
    Parsippany, NJ
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    top margin problem

    would someone be so kind as to check this page for me and see if you can help me figure out how to get the top margin to be the same in IE and mozilla? I know, that may be impossible but hey, it's worth a try. Thanks in advance for your help!

    http://www.bushwackers.org/member/openhouse2004.html

    It looks just right in IE but I can't get the top margin correct in mozilla.
    Alex Nielsen

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    I don't think it's the body's margin, but rather that first paragraph's margin that is giving you trouble. Try setting margin-top to 0 for that and see what happens.

    Off Topic:

    Also, add "padding: 0;" into your body CSS rule so that the page will start with no whitespace in Opera as well

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,556
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    Vinnies correct (as usual) just add this to your stylesheet.
    Code:
    p  {margin-top:0px}
    Paul

  4. #4
    SitePoint Member bushbass's Avatar
    Join Date
    May 2003
    Location
    Parsippany, NJ
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    thanks

    Thanks so much. That did the trick! I think I was overlooking that because the first paragraph is in an include file and I was just looking in the body of the page. Thanks again.
    Alex Nielsen


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
  •