Sent by Tim Snadden on 2 July 2009 23:11
On 3/07/2009, at 8:31 AM, MEM wrote:
> Hello,
>
> I have tried several hasLayout workarounds for the #navcontainer
> padding
> problem here:
>
> http://www.cantinho.org/pt/cantinho-site/layout8_ups.html
By looking at the comments in the document it seems like English isn't
your first language. With respect - When you read http://www.satzansatz.de/cssd/onhavinglayout.html
did you understand it? I appreciate that it may contain some
reasonably complicated language for a non-native speaker.
Have you *really* tried several hasLayout workarounds? It's very clear
from the document what triggers hasLayout. You can use the IE web
developer toolbar to inspect any element and check whether or not it
has layout.
Line 158 states that it is aimed IE6, therefore it should be inside
the conditional comment for IE6.
1. Remove line 158 (width: 100%).
2. Add the following inside your IE6 conditional comment
#navcontainer {
zoom: 1; /* gives it layout */
clear: both; /* self explanatory????? */
}
http://snadden.com/sandbox/layout8_ups.html
Some people avoid zoom as it is invalid CSS. I am a wholehearted
supporter of standards and always ensure that my HTML/CSS is valid,
but when it comes to Internet Explorer my approach is that it gets
what it deserves. Anything to make it render correctly is fine in my
book as long as it's in a conditional comment so that the main
stylesheet isn't polluted by IE nonsense.
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/