SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist jor133d's Avatar
    Join Date
    Jul 2003
    Posts
    428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Firefox padding issue, IE ok

    Hello-

    I am working on a simple website for a non-profit project to get the word out.

    The website works fine in IE but in firefox it leaves a white border at the top of the screen. How can I fix this?

    The website is located at projectfallenheroes.org/support

    Here is the CSS, nothing advanced as you can see:




    body {
    padding: 0;
    margin: 0;
    background-image: url(images/bg.gif);
    background-repeat: repeat-x;
    }


    #footer {
    background:url(images/footerbg.gif);
    position: absolute;
    bottom: -10;
    width: 100%;
    height: 131px;
    z-index: 1;
    }
    #middle {
    position: relative;
    background-image: url(images/middlebg.gif);
    width: 789px;
    height: 650px;
    margin-right: auto;
    margin-left: auto;
    }

    img {
    padding: 0;
    }

    #outside {
    padding: 0 0 0 0;
    top: -10;
    }

  2. #2
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,117
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    Hello,

    The space is caused by the margin on all paragraphs by default.
    I recommend starting your CSS with
    Code:
    * {
      margin: 0;
      padding: 0;
    }
    To get rid of all padding and margin on all elements.

    You shouldn't have those empty paragraphs around your images anyways.

    There's more to html than the img tag, you want to use heading tags for headings, list tags for lists etc..


    All the best,

  3. #3
    SitePoint Evangelist jor133d's Avatar
    Join Date
    Jul 2003
    Posts
    428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you!

  4. #4
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,117
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    No problem


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
  •