David, I don't believe "tight coding" had anything to do with it. You simply moved the background style to the containing div. This is a "fix" but not always possible or desirable.
See this second test case which uses your code with the background style applied to the containing div (#pagehead): http://www.stammbt.com/testing/testie7_2.html Thanks, Nate Kresse On 10/22/06 4:24 AM, "~davidLaakso" <[EMAIL PROTECTED]> wrote: > Nate Kresse wrote: >> Hello All, >> >> I came across a situation where IE7 (fresh copy downloaded today) inserts >> extra padding-top when applied to an element inside a cleared div that comes >> after a floated div. It also seems like it is related to using the shortcut >> to apply a background color. >> >> Check out my test case here: >> >> http://www.stammbt.com/testing/testie7.html >> >> It can be "fixed" a number of ways. >> >> 1. If you add a border to the div with the property: clear:both >> 2. Removing the background property >> 3. Completing the background property shortcut - adding url("image") >> no-repeat 0 0; >> 4. removing the float on the first div >> >> You get the point... >> >> This page displays correct in every browser that I've loaded it into except >> IE7. >> >> >> > I have no idea what is going on. Or why it is going on. Or what causes > something to correct it.. Tight coding seemed to yield a consistent result? > <http://www.chelseacreekstudio.com/ca/cssd/bug.html> > <http://www.browsercam.com/public.aspx?proj_id=293476> > Best, > ~dL ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
