Treehouse: Grow your CSS skills. Land your dream job.

disappearing margin colors

  • # April 19, 2009 at 11:49 am
    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

    Pellentesque habitant morbi tristique senectus et netus et malesuada fames.

    In this example, in FF, the wrapper top and bottom margins’ color disappears? It shows up ok on IE7. The color of the
    top and bottom margins reverts ro the color specified for the background, not the wrapper.

    What is going on here?


    # April 23, 2009 at 10:23 pm

    found something that does work, put padding on the wrapper, and side margin on the box


    # April 24, 2009 at 2:28 am

    Margins between elements will not show the background color of that div. That is how they work. … rties.html

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

You must be logged in to reply to this topic.