Click to See Complete Forum and Search --> : [RESOLVED] hasLayout? is there an easy way to find out...


postedoverseas
09-14-2006, 06:17 PM
Hi everyone.

I have just been reading up on has Layout and I don't quite understand it.
Am I after having hasLayout or not.
I have tried adding width to all my divs, but I can't get rid of the floats, I might as well tell IE5 users to go away.

Is there an easy way to find out what is causing the hasLayout problems? Is adding more tags to the stylesheet the answer? I have tried
* html {height:1%;} but it has made no difference.

NogDog
09-14-2006, 06:36 PM
Could this be the issue: "As of Microsoft Internet Explorer 6, when the !DOCTYPE declaration specifies strict standards compliance, inline elements will ignore the width and height properties, and setting the width and height properties will not cause the element to have layout"? (From http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/haslayout.asp )

postedoverseas
09-15-2006, 02:25 AM
Sotred,
With a bit of thinking and some more thinking, and then a bit more thinking. ?I tried adding width to the <p> and <a> tags in my main navigation menu on the left of the page and hey presto, give <img>s a few dimensions and it's sorted.
Thanks