Andreas Kakanis-Silk wrote:

> www.vakalis.edu.gr/aks/ch02proj.html
        (corrected address)

> In Project 2, the use of the child selector:
> 
> html>body div.pic ul {background: #CCCCBB; border: 3px double 
> #555522;}
> 
> is to not confuse poor IE6 which Eric says "will get hopelessly 
> muddled and start making elements disappear". Unfortunately IE7 
> understands the child selector and... gets hopelessly muddled and 
> starts making elements disappear.

Correct for IE6, but the use of the child selector is not the way to go.

This will work better:

div.pic ul {background: #CCCCBB; border: 3px double #555522; position:
relative;}

...with the addition of 'position: relative' to fix the
"disappearing-act" in IE/win. Works in IE6, but I've got no IE7 to test
on so I'm working from memory and will have to leave the actual testing
to others.

> Is anyone else having problems with negative margins and IE7? It is 
> disappointing as IE7 seems to be handling most of Eric's examples 
> perfectly

AFAIK: IE7 has no more problems with negative margins than earlier
versions. That is: "none at all", in my experience.

We often have to make IE "paint" and "layer" correctly though -
especially when we're pulling elements outside their containers with
negative margins, and I think that's the kind of problems you are
running into since you're using a 'not entirely new' book to learn CSS from.
Although I've never read "Eric Meyer On CSS", I think some of the
solutions may be in need of cross-browser updates.

Of course; that book came out long before IE7 was announced, so it's
really up to IE7 to catch up with standards, and not for the book to
catch up with IE7. IE7 is still far behind :-)

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- 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/

Reply via email to