Grow your CSS skills. Land your dream job.

[Solved] the little white space around the website

  • # October 21, 2011 at 7:01 am

    i am trying to make a page that is 100% in height and width.

    I specified a #page-wrap with 100% width and height and i put all the contents with in the page wrap, now when i view my webpage there is a small white space around the whole #page-wrap. why is it so ???

    # October 21, 2011 at 7:18 am

    Have you added the margin & padding resets?

    # October 21, 2011 at 8:58 am

    no, but is that necessary ?

    # October 21, 2011 at 9:33 am

    All browsers add an amount of margin or padding by default.

    It’s recommended by many therefore to zero these out as part of a reset.css

    * {
    margin: 0;
    padding: 0;

    Alternatively, make your background on the body the same as on your page-wrap.

    # October 21, 2011 at 10:13 am

    thanks !!!!

    # March 6, 2013 at 4:30 pm

    yes, it works, very good.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".