September 6, 201115 yr Hi everyone, hopefully someone can help with this. When I view my site: www.fuelrecruitment.co.uk in IE8 and zoom in, the layout breaks. I've tried different position:, clears: overflow: and display: attributes on the divs but nothing seems to fix it. So frustrating as it seems to zoom in fine in other browsers. Can anyone advise please? Many thanks Michelle
September 6, 201115 yr As I currently browse using IE8, it seems to be fixed, but some good tips: 1. Try to manipulate adding position: relative to some neuralgic elements. 2. Use relative font sizes (when fonts break) - example: ems instead of points or percent instead of pixels. 3. Also, You might try to add zoom: 1; CSS property, but You have to be aware that such problems are usually very confusing and hard to fix. I hope it helped, Paul
September 7, 201115 yr Author Thanks Paul, I had wondered whether changing the sizes to em instead of px would help. I'll give it a go!: ) PS can you explain what a neuralgic element is please? Edited September 7, 201115 yr by bassmish123
September 7, 201115 yr To be honest, changing sizes is a bit out-of-date issue because it mainly affected zooming in IE6. I am not 100% sure if it still happens in IE8 because I always use relative font sizes Well, neuralgic element is the element causing problems (I am not sure if such comparison appears in English). According to the IE issues, it's really hard to find it, sometimes that's a container, sometimes particular layout element, I sometimes spot this problem working with JS sliders in IE. IE has a slightly different understading of elements, just google for the hasLayout to find out more.
September 7, 201115 yr Author I did come across the hasLayout phrase a lot when trying to fix the issue - haven't had any experience of it myself but will look into it : )
September 7, 201115 yr Author I've just noticed that when I view the homepage in IE and zoom in, it looks fine. But all the other pages break on zoom. The plot thickens!
September 7, 201115 yr I've just noticed that when I view the homepage in IE and zoom in, it looks fine. But all the other pages break on zoom. The plot thickens! That happens in Chrome and FireFox as well.. But it's not only because of the width being in pixels, there are a lot of other gremlins at play here. Pixel width issues aside; #topheader3 looks to be lined up with #maincontent3, yet the #topheader3 itself is float='left' against a sidebar with fixed width (and float='left'), then it's #maincontent3 is a float='left' wrapped in a float='right' with fixed width... As soon as any of these elements change size, you'll run into problems. Sorry to say it, but my brain hurts trying to think of where things will move to at 150% zoom. At the end of the day, if you want it to be truly zoom-friendly, you're going to need to rework the layout quite drastically... To keep things simple, work from the outside in: first decide on whether the site is fluid width or fixed (percent or pixel). Then work the width of the elements contained there-in using percentages. Then after that, you can work on the height of the elements and their vertical alignment.. It sounds a lot more complex than it really is, just give it a go in a test document with some empty elements and you'll get the hang of it relatively quickly.
September 8, 201115 yr Author So my brilliant IT support chap offered the following fix which has worked a treat: <br style=”clear:both;” /> in front the sidemenu div. Sorted! : )
September 8, 201115 yr Ah... Nice. Just due to personal preference, I use floats very sparingly, so I honestly wouldn't have thought of trying that.
Create an account or sign in to comment