Jump to content

IE Vs Mozilla


kevmeister

Recommended Posts

Hiya, thanks to many people on this site helping out big time my site is almost complete. 1 last problem I have is, i use Mozilla, as it's the best, and so my test browser is firefox, and I have my site perfected in Firefox, however when i test my site in IE, i get a horrible white border around the inner frame, and also a white bar between the picture and nav bar.If anyone could help me with this it would be very very much appreiciated.Here is my site link:Linky ThingThanks again for all the help so far peeps, i definitely couldn't have done it on my own.Kev

Link to comment
Share on other sites

Hi Kev,This fixed your border: body{margin:0px;padding:0px}This fixed your white bar: <table style="position:relative;top:-5px" code below now works ok in ie and ffps i tweaked your if statements cause some of the changes you made were contradicting each otherScott----<html><head> <meta http-equiv="content-type" content="text/html;charset=utf-8"><style><!--a {text-decoration: none; }--></style> <script language="JavaScript"><!--function SymError(){ return true;}window.onerror = SymError;var SymRealWinOpen = window.open;function SymWinOpen(url, name, attributes){ return (new Object());}window.open = SymWinOpen;//--></script><script>function findLivePageHeight() {if (window.innerHeight) {//alert ('uses Inner');return window.innerHeight;}if (document.body.clientHeight) {//alert ('uses Client');return document.body.clientHeight;}return (null);}function classChange(){livePageHeight = findLivePageHeight();var newHeigh=0;if((livePageHeight>0)&&(livePageHeight<100))newHeigh=3;else if((livePageHeight>100)&&(livePageHeight<150))newHeigh=5;else if((livePageHeight>150)&&(livePageHeight<250))newHeigh=7;else if((livePageHeight>250)&&(livePageHeight<350))newHeigh=9;else if((livePageHeight>350)&&(livePageHeight<450))newHeigh=12;else if((livePageHeight>450)&&(livePageHeight<550))newHeigh=13;else if((livePageHeight>550)&&(livePageHeight<650))newHeigh=14;else if((livePageHeight>650)&&(livePageHeight<750))newHeigh=15;else newHeigh=16;for (i=0;i<document.getElementsByTagName("table").length; i++){if (document.getElementsByTagName("table").item(i).className == "foo"){document.getElementsByTagName("table").item(i).style.fontSize = newHeigh+"pt";}}}</script><style>table.foo{font size:15px}body{margin:0px;padding:0px}</style></head><body onload="classChange();" onresize="classChange();" style="overflow: hidden"><div align="center"><img src="images/skyline.jpg" alt="" height="64%" width="100%" border="0"><table style="position:relative;top:-5px" class="foo" width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="navy" height="6%"><tr height="6%"><td align="center" width="20%" height="6%"><font size="3" color="white" face="Century Gothic">home</font></td><td align="center" width="20%" height="6%"><font size="3" color="white" face="Century Gothic"><a href="buy.html"><font color="white">buy</font></a></font></td><td align="center" width="20%" height="6%"><font size="3" color="white" face="Century Gothic"><a href="sell.html"><font color="white">sell</font></a></font></td><td align="center" width="20%" height="6%"><font size="3" color="white" face="Century Gothic"><a href="financial.html"><font color="white">financial</font></a></font></td><td align="center" width="20%" height="6%"><font size="3" color="white" face="Century Gothic"><a href="contact.html"><font color="white">contact</font></a></font></td></tr></table> <table class="foo" width="100%" border="0" cellspacing="0" cellpadding="10" height="18%"><tr valign="top" height="18%"><td valign="top" align="justify" bgcolor="white" width="40%" height="18%"><font face="Century Gothic">FSD’s philosophy is simple; we endeavour to take your brands and increase sales volume into secure non-traditional retail outlets. We have a hard earned reputation for innovation, quality and service. </font></td><td valign="middle" bgcolor="white" width="20%" height="18%"><img src="images/logo.gif" alt="FSD" align="top" border="0"></td><td valign="top" align="justify" bgcolor="white" width="40%" height="18%"><font face="Century Gothic">The FSD portfolio comprises a range of internationally renowned brand names from around the globe, as well as some exciting newcomers that will become the brands of the future.</font></td></tr></table></div></html><script language="JavaScript"><!--var SymRealOnLoad;var SymRealOnUnload;function SymOnUnload(){ window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload();}function SymOnLoad(){ if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload;}SymRealOnLoad = window.onload;window.onload = SymOnLoad;//--></script>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...