Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS White border around DIVs

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #29574

    First of all, I’m a newbie, so please be kind.

    I’ve got this problem: the page has white borders around the divs. How can I solve it?
    I mean *all* the white borders, the one at top left, left, and between the divs

    Page: http://www.diegopetrucci.it/test/helvetica/index.html
    CSS: http://www.diegopetrucci.it/test/helvetica/style.css

    *The page is *almost* validated (errors like missing utf encoding, nothing serious)

    #79396
    "diegopetrucci" wrote:
    First of all, I’m a newbie, so please be kind.

    I’ve got this problem: the page has white borders around the divs. How can I solve it?
    I mean *all* the white borders, the one at top left, left, and between the divs

    Page: http://www.diegopetrucci.it/test/helvetica/index.html
    CSS: http://www.diegopetrucci.it/test/helvetica/style.css

    *The page is *almost* validated (errors like missing utf encoding, nothing serious)

    EDIT: I solved the white space on the left & between divs using negative space in margins, but still have the problem of white space on the right for the "background" div

    #79398
    TheDoc
    Member

    Negative margins should be avoided at all costs!

    Instead of using just the html and body on your reset, change it to:

    * { margin: 0; padding: 0; }

    Then go from there.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.