July 30, 201016 yr I need this desperately fixed. http://www.gregmurkett.com/modernplant3/ Completely messes up in IE, then go on safari or firefox or chrome and it works perfectly.. _ Here's the code. Please don't say 'use divs instead of tables' because I know that, but i'm new to css and have a time limit on this project.. _ <html> <head> <title>Modern Plant Group : Civil Engineering, Haulage, Plant Hire, Groundworks, Crushing, Recycling</title> <meta name="keywords" content=" civil engineering plant hire haulage groundworks recycling crushing bespoke" /> <script src="jquery.footer.js" type="text/javascript"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <style type="text/css"> html { background-color:#FFF; color:#060; padding:0px; margin:0px; font-family:Arial, helvetica, serif; } body { text-align:center; margin:0px; } #header { width:100%; min-width:100%; height:138px; background-image:url(images/HeaderBackground.jpg); } #quick1 { margin-left:50px; } #style { font-size:30px; font-family:Arial; color:#080; } #container { width:558px; height:145px; } #image1 { float:right; } #text1 { float:left; width:190px; height:inherit; } </style> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <div id="header"> <center> <table id="Table_01" width="1057" height="890" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="9"> <img src="images/layout_01.png" width="1045" height="138" alt=""></td> <td rowspan="11"> </td> </tr> </header> <tr> <td colspan="9"> <img src="images/Logo.jpg" width="1045" height="68" alt=""></td> </tr> <tr> <td colspan="2"><a href="civil.html"><img src="images/Civil-Engineering.jpg" alt="" width="173" height="168" border="0"></a></td> <td colspan="2"><a href="crushing.html"><img src="images/CrushingRecycling.jpg" alt="" width="177" height="168" border="0"></a></td> <td><a href="haulage.html"><img src="images/Haulage.jpg" alt="" width="175" height="168" border="0"></a></td> <td><a href="plant.html"><img src="images/PlantHire.jpg" alt="" width="175" height="168" border="0"></a></td> <td><a href="groundwork.html"><img src="images/Groundwork.jpg" alt="" width="175" height="168" border="0"></a></td> <td><a href="bespoke.html"><img src="images/Bespoke.jpg" alt="" width="168" height="168" border="0"></a></td> <td rowspan="2"> <img src="images/layout_10.jpg" width="2" height="221" alt=""></td> </tr> <tr> <td> <img src="images/layout_11.jpg" width="3" height="53" alt=""></td> <td colspan="7"> <img src="images/spacer.jpg" width="1040" height="53" alt=""></td> </tr> <tr> <td colspan="3"><a href="index.html"><img src="images/homerollover.png" width="182" height="35" border="0"></a> <p></p> </td> <td colspan="3" rowspan="4"><div id="quick1"><p> <div id="style">ModernPlant</div> <p> Established in 1948 Modern Plant Group have built their reputation based on continual expansion of their fleet and fully qualified staff to service the needs of today's construction industry.<p> Groundwork carried out with our own plant and labour<p> Haulage using our own vehicle fleet from 7.5 - 44 tons, rigid and articulated tippers.<p> Demolition using our own plant and machinery.<p> Crushing and re-cycling at our separate facility in Rugby. </span></div></td> </tr> <tr> <td colspan="3"> <img src="images/layout_15.jpg" width="182" height="8" alt=""></td> </tr> <tr> <td colspan="3"><a href="health_and_safety.html"><img src="images/healthandsafety.jpg" width="182" height="39" border="0"></a><p><a href="contact.html"><img src="images/contactus copy.jpg" width="182" height="39" border="0"></a></td> </tr> <tr> </tr> <tr> <td colspan="3"> <img src="images/layout_18.jpg" width="182" height="15" alt=""></td> </tr> <tr> <td colspan="3"><a href="mailto:info@modernplant.co.uk"><img src="images/emailus copy.jpg" alt="" width="182" height="54" border="0"></a></td> </tr> <tr> <td colspan="3"><a href="http://www.lji-mpg.co.uk/"><img src="images/layout_20.jpg" alt="" width="182" height="271" border="0"></a></td> </tr> <tr> <td> <img src="images/spacer.gif" width="3" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="170" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="9" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="168" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="175" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="175" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="175" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="168" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="2" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="12" height="1" alt=""></td> </tr> </table> </body> </html>
July 30, 201016 yr The green background seems to be going over the lower part of the page in IE but not in Firefox. The first thing I noticed is that you haven't got a doctype, so I added one and edited the HTML tag to suit the XHTML doctype:- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> It immediately got rid of the green background lower down. Perhaps this is all that's required. A doctype tells the browser which standards to apply; otherwise it guesses and may guess wrong. Your meta tags are closed with /> instead of just > which suggests that a XHTML doctype is appropriate. Images should also be closed with /> for XHTML <img src="images/Civil-Engineering.jpg" alt="" width="173" height="168" border="0"/> Use a validator to check for errors:- http://validator.w3.org/
July 30, 201016 yr Author I'm currently validating the homepage, i'll update if it all works good after.
July 30, 201016 yr Author OK, i reduced about 30 errors to 7.. but now on IE the whole screen is just blank. check it out http://www.gregmurkett.com/modernplant3/
July 30, 201016 yr I think the trouble is here: <script type="text/javascript"src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"/> type="text/javascript"src=" Whitespace is missed.
July 30, 201016 yr Also do not forget to insert whitespaces before end of single tags: <script src="jquery.footer.js" type="text/javascript"/> <script src="jquery.footer.js" type="text/javascript" />
July 30, 201016 yr Author Nah it wasn't that, it was the other script. But now if you check it out, the text is centered :/ arrgghh
July 30, 201016 yr Author Alright I've fixed everything, it all works in IE now:) _ Have I told you how awesome you guys are?
Create an account or sign in to comment