I am struggling with floats and IE 6 on a site I am trying to get going and was hoping for some 'fresh eyes' on the problem.
I am trying to test on IE6 and it now crashes when I try to load the page. It started crashing since I have been playing around with it, because it was displaying but the layout was completely wrong.
Page works fine and looks great in Firefox.
I figure it is a problem related to IE 'haslayout' but can't seem to find what I am doing. I am not quite sure where the problem lies so I will post all of the CSS I am using related to the page.
<h2 class=\"home\">Southern </h2> <h2 class=\"home\">Our Key services included: <ul class=\"front\"> <li>Heatpump installation and servicing</li> <li>Cool and Freezer Rooms</li> <li>Air Conditioning units</li> </ul></h2> <h2 class=\"home\">We install, maintain and service a range of units on a commercial level and provide maintenence services, ensuring all of your equipment is operating at optimum efficiency. </h2> <h2 class=\"home\">Feel free to <a href=\"contact.html\">contact us</a> if you have an enquiry</h2>
I have got an external style sheet in conditional comments (targeting IE) with the following code in it:
#content, ul#nav, #footer ul#footlinks {zoom:1}
I am not completely sure if I am doing the write thing in regards 'haslayout'. I have tried playing around with 'height:1%' etc but like I say, I might not be exactly understanding the problem.
Any advice, including the state of my code, would be much appreciated
OK, sorry about that, I can't offer a link just yet
I know I have put all the code in there but I don't know what is affecting it.
I am running IE 6 in XP on Parallels on my Mac
When I load the index.html file into IE, it flashes up the text that is held within the 'h2' tags. The picture in the 'sidebar' div flashes up below and to the right (basically I want it to appear to the right, level with the text). The 'footerimage' appears about half the size it is supposed to be and slightly to the the left.
Then I get the hour glass and the 'IE has encountered a problem and needs to close' error message, something to do with the mshtml.dll
If I restart windows and try again, I might not even get that brief flash of layout before IE craps out.
In Firefox, The text in 'h2' tags appears to the left, the pic in 'sidebar' appears to the right of it all nicely lined up and the footer image sits on the bottom of the repeated 'bg-content.png' image which I have set to repeat-y on the 'page-wrap'. The footer navbar sits nicely on that in the center.
Before it started crashing in IE, I was trying to fix the layout in IE and it was consistently showing as described above, but now it just crashes out.
Hope this is more useful, if there is anymore I can do to help I would be happy to.
Thanks alot, could swear I had it properly validated but I took the elements out from the header tag and rearranged a few things. I then cleared everything from IE (cookies, history etc) and it seems to be OK now.
Thanks for pointing me in right direction, didn't realise nesting elements in H tags was a bad idea
Great. I'm glad that helped. It was a shot in the dark.
Yea, Headings and paragraphs are block elements for organizing/categorizing text. Having a paragraph inside a header is like a box in a box. pointless.
I am struggling with floats and IE 6 on a site I am trying to get going and was hoping for some 'fresh eyes' on the problem.
I am trying to test on IE6 and it now crashes when I try to load the page. It started crashing since I have been playing around with it, because it was displaying but the layout was completely wrong.
Page works fine and looks great in Firefox.
I figure it is a problem related to IE 'haslayout' but can't seem to find what I am doing. I am not quite sure where the problem lies so I will post all of the CSS I am using related to the page.
CSS
HTML
I have got an external style sheet in conditional comments (targeting IE) with the following code in it:
#content, ul#nav, #footer ul#footlinks {zoom:1}I am not completely sure if I am doing the write thing in regards 'haslayout'. I have tried playing around with 'height:1%' etc but like I say, I might not be exactly understanding the problem.
Any advice, including the state of my code, would be much appreciated
Thanks
I know I have put all the code in there but I don't know what is affecting it.
I am running IE 6 in XP on Parallels on my Mac
When I load the index.html file into IE, it flashes up the text that is held within the 'h2' tags. The picture in the 'sidebar' div flashes up below and to the right (basically I want it to appear to the right, level with the text). The 'footerimage' appears about half the size it is supposed to be and slightly to the the left.
Then I get the hour glass and the 'IE has encountered a problem and needs to close' error message, something to do with the mshtml.dll
If I restart windows and try again, I might not even get that brief flash of layout before IE craps out.
In Firefox, The text in 'h2' tags appears to the left, the pic in 'sidebar' appears to the right of it all nicely lined up and the footer image sits on the bottom of the repeated 'bg-content.png' image which I have set to repeat-y on the 'page-wrap'. The footer navbar sits nicely on that in the center.
Before it started crashing in IE, I was trying to fix the layout in IE and it was consistently showing as described above, but now it just crashes out.
Hope this is more useful, if there is anymore I can do to help I would be happy to.
Thanks again
First thing: You should Validate your CSS and HTML to make sure everything is valid. That should fix your "crashing IE6"
I'm assuming this is the h2 you are talking about:
If you want the Sidebar to come up next to the h2, I wouldn't have the h2 be 100%.
Also, you should not have Paragraphs inside of H2's:
h2.home p{padding:10px 0px 10px 0px;
}
I don't have time to read through the rest of the code. Let me know how that works.
Thanks alot, could swear I had it properly validated but I took the elements out from the header tag and rearranged a few things. I then cleared everything from IE (cookies, history etc) and it seems to be OK now.
Thanks for pointing me in right direction, didn't realise nesting elements in H tags was a bad idea
Yea, Headings and paragraphs are block elements for organizing/categorizing text. Having a paragraph inside a header is like a box in a box. pointless.
l8r,