April 22, 201016 yr Hi whe http://www.soulcellar.com/culturalquarters.php is viewed in IE8 using Win7 the display is as picture attached (but it doesn't display like this on all computers using IE8 and Win7, so for some of you it will appear fine). Does anyone know what I could do to fix this? Cheers.
April 22, 201016 yr Your IE8 shows the Text in div #text1 and text in #text2 side by side. Both divs have float: left; but neither has a width, so IE8 is just using the minimum width it needs and there is room for both side by side. Since you want #text2 below #text1, EITHER delete float: left from both divs OR give them widths so that the total widths exceed the available width, then the second float: left div will have to go down below the other. Floated divs should always have a width, but I don't think you need the float here. <div id="content"> <h1>The Cultural Quarters</h1> <div id="text1"><h2>Southampton's cultural revolution!</h2></div> <div id="text2">For some time Southampton City #text1{ margin-top:26px; margin-left:0px; /*float:left;*/ } #text2{ margin-top:12px; margin-left:0px; /*float:left;*/ text-align:justify; }
April 22, 201016 yr Author Yeah thats worked perfectly, cheers Wickham. Also in IE there is spacing issues on the index page http://www.soulcellar.com/ .... if you view it in FF you can see how it should be spaced. Do you know how to fix that as well?
April 22, 201016 yr Author Here are pics of what i mean. The first pic of from my mates computer who is also running IE8 on Win7. He has an issue with one of the ads not being where it should be but the spacing is fine. Where as on the second pic i have spacing issues like there is a top margin on all the bits of content which is causing the content to continue off the bottom of the page.
April 22, 201016 yr It is odd as IE7 and Firefox don't show a large top margin above the second image DJHammy in #leftinner. The #leftinner2, #leftinner3 and #leftinner4 have a margin-top: 14px which is obviously much more in IE8. Since the containing div #leftinner is width: 114px; the divs with the image links #leftinner1, #leftinner2, #leftinner3 and #leftinner4 don't need a float: left; (and they don't need a width: 114px either, probably as 114px is all that's available) so they are bound to go one above the other without a float. Try omitting float: left; from the four inner divs first. EDIT: ignore the above (although it's still true what I said above). In this code:- <div id="leftinner"> <div id="leftinner1"><a rel="lightbox" href="img/ad_soulbowlcafelarge.jpg" title="Soul Bowl Specials - coming soon..."><img alt="" src="img/ad_soulbowlcafe.jpg" /></div> <div id="leftinner2"><a href="whatson.php"><img src="img/ad_djhammy.jpg" width="114" height="233" /></a></div> <div id="leftinner3"></div> <div id="leftinner4"></div> </div> the </a> for the first image link is missing so perhaps IE8 is affected by this. Add it in:- <div id="leftinner"> <div id="leftinner1"><a rel="lightbox" href="img/ad_soulbowlcafelarge.jpg" title="Soul Bowl Specials - coming soon..."><img alt="" src="img/ad_soulbowlcafe.jpg" /></a></div> <div id="leftinner2"><a href="whatson.php"><img src="img/ad_djhammy.jpg" width="114" height="233" /></a></div> <div id="leftinner3"></div> <div id="leftinner4"></div> </div>
April 22, 201016 yr Author Ok thanks, I will do this later when my mate gets back from work as it only appears on his comp but not mine (eventhough we are both using IE8 with Win7..) What about the spacing issue on the index page in the second image as that is what I can see on my IE8? Is it a case of playing around with the margins?
April 22, 201016 yr What about the spacing issue on the index page in the second image as that is what I can see on my IE8? Is it a case of playing around with the margins? I note that you have a reset style body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;} which includes the p tag so that should make all browsers the same, but IE does use up more height than Firefox when there's a lot of text, probably because the character spacing, line spacing or just the way font is displayed is slightly different. If this is the issue, either delete heights from divs so that they find their own height or if this doesn't work you may have to increase height for some divs, probably including #wrapper. After a second look I can see that there is more space between the images in the middle like RayGun and Tommy Eye so play around with the margins and padding in #eventlist { padding-top: 50px; margin-bottom: 10px; } #eventlist .event { border-bottom: 2px dotted #320200; padding: 13px; } #eventlist .event h3 { font-size: 14px; font-weight: bold; margin: 0 0 2px 114px; float: right; width: 325px; } and other styles inside #eventlist. There's a space between the h3 and the date underneath in IE but not in Firefox which pushes everything down in IE. Edit margin or padding in either #eventlist .event h3 #eventlist .event p or #eventlist .event p.date
April 22, 201016 yr Author Right ok I will have acrack at this tomorrow, I think I need to learn how to use less divs really too
April 26, 201016 yr Author Hi Wickham, I have added the missing </a> link so will find out tonight if that has solved it (as it only appears on mates comp) As for the spacing issue on IE8 ive read what you have said but if i play with the padding or any of the setting etc it will put FF out too so I don't know what I can do. I have just found out that the spacing is out on Safari as well as IE8... Is there any code I can add in the css to make the spacing the same throughout the browsers?
Create an account or sign in to comment