The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Programming Fundamentals" Dec 02 - 2:00 PM Eastern

disappearing margin colors

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

    Model Test Box

    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

    This reply has been reported for inappropriate content.

    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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed