Grow your CSS skills. Land your dream job.

disappearing margin colors

  • # April 19, 2009 at 11:49 am
    Code:
    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



    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?

    Al

    # April 23, 2009 at 10:23 pm

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

    Al

    # April 24, 2009 at 2:28 am

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

    http://lkamal.blogspot.com/2006/12/marg … rties.html

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

You must be logged in to reply to this topic.

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