Grow your CSS skills. Land your dream job.

padding where there isn’t supposed to be any?

  • # March 17, 2009 at 3:31 pm

    i’m designing a simple site for my girlfriends dad. and the problem i’m came across is that theres padding on the left and at the bottom of the content and basically there shouldn’t be any. i’ve been staring at the css but can’t find whats wrong, i’ve validated it also and theres nothing wrong there was hoping a second set of eyes might be able to help me.

    http://www.stray-designs.com/lasse/

    i’ve been doing this is FF but when i brought it into IE the header image also has spacing below it and i have no idea why its doing that also

    # March 17, 2009 at 3:39 pm

    Add this to the top of your CSS file:

    * { margin:0; padding:0; }

    Then go to google and search "css reset".

    # March 17, 2009 at 4:25 pm

    cool thanks mate i’ll try that out now :)

    Rob
    # March 17, 2009 at 5:21 pm

    the google bit can refer to this:

    http://developer.yahoo.com/yui/reset/

    but there are many others… :)

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

You must be logged in to reply to this topic.

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