Hi,
The text is in exactly the same place in both browsers ( as I suspected
).
Its the table above that is in a different position. You have centred the table above therefore it will only be in the same position when browers have their windows opened to exactly the same width. If you maximise windows then this still will not be the same because mozilla doesnt have a default scrollbar space whereas IE does.
This means that at max width at whatever resolution they will be slightly different.
You are placing tour text absolutely in respect to the viewport - have you thught about what happens when someone resizes the window smaller. The text will still stay in the same place but the table above that is centred will move to the left so you will be right out of alignment.
You should place the text in relation to the corner of the table above. One way to do this would be to wrap the whole lot up in a div and give it a position:relative and then place the text absolutely from that element and it will move with the table and always appear at the same location relative to the table above.
e.g.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" >
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<STYLE TYPE="text/css">
<!--
#div1, #div2, #div3, #div4, #div5 {position:absolute; top: 31px; left: 10px; text-align: left; visibility:hidden; font-family: verdana; font-size: 10px; font-weight: bold; color: #454545;}
html,body {margin:0;padding:0;text-align:center}
img { border: 0px; }
#outer{
width:769px;
position:relative;
margin:auto;
text-align:left;
}
-->
</STYLE>
<SCRIPT language="JavaScript" type="text/javascript">
Image1= new Image(72,27)
Image1.src="http://www.worldofmi.com/Sidewalk/me...side_aktiv.gif"
Image2= new Image(72,27)
Image2.src="http://www.worldofmi.com/Sidewalk/menu_profil_aktiv.gif"
Image3= new Image(72,27)
Image3.src="http://www.worldofmi.com/Sidewalk/me...kter_aktiv.gif"
Image4= new Image(72,27)
Image4.src="http://www.worldofmi.com/Sidewalk/menu_priser_aktiv.gif"
Image5= new Image(72,27)
Image5.src="http://www.worldofmi.com/Sidewalk/me...takt_aktiv.gif"
function change1() {
document.menu_forside.src='http://www.worldofmi.com/Sidewalk/menu_forside_inaktiv.gif';
document.menu_profil.src='http://www.worldofmi.com/Sidewalk/menu_profil_inaktiv.gif';
document.menu_produkter.src='http://www.worldofmi.com/Sidewalk/menu_produkter_inaktiv.gif';
document.menu_priser.src='http://www.worldofmi.com/Sidewalk/menu_priser_inaktiv.gif';
document.menu_kontakt.src='http://www.worldofmi.com/Sidewalk/menu_kontakt_inaktiv.gif';
document.menu_forside.src = Image1.src; return true;
}
function change2() {
document.menu_forside.src='http://www.worldofmi.com/Sidewalk/menu_forside_inaktiv.gif';
document.menu_profil.src='http://www.worldofmi.com/Sidewalk/menu_profil_inaktiv.gif';
document.menu_produkter.src='http://www.worldofmi.com/Sidewalk/menu_produkter_inaktiv.gif';
document.menu_priser.src='http://www.worldofmi.com/Sidewalk/menu_priser_inaktiv.gif';
document.menu_kontakt.src='http://www.worldofmi.com/Sidewalk/menu_kontakt_inaktiv.gif';
document.menu_profil.src = Image2.src; return true;
}
function change3() {
document.menu_forside.src='http://www.worldofmi.com/Sidewalk/menu_forside_inaktiv.gif';
document.menu_profil.src='http://www.worldofmi.com/Sidewalk/menu_profil_inaktiv.gif';
document.menu_produkter.src='http://www.worldofmi.com/Sidewalk/menu_produkter_inaktiv.gif';
document.menu_priser.src='http://www.worldofmi.com/Sidewalk/menu_priser_inaktiv.gif';
document.menu_kontakt.src='http://www.worldofmi.com/Sidewalk/menu_kontakt_inaktiv.gif';
document.menu_produkter.src = Image3.src; return true;
}
function change4() {
document.menu_forside.src='http://www.worldofmi.com/Sidewalk/menu_forside_inaktiv.gif';
document.menu_profil.src='http://www.worldofmi.com/Sidewalk/menu_profil_inaktiv.gif';
document.menu_produkter.src='http://www.worldofmi.com/Sidewalk/menu_produkter_inaktiv.gif';
document.menu_priser.src='http://www.worldofmi.com/Sidewalk/menu_priser_inaktiv.gif';
document.menu_kontakt.src='http://www.worldofmi.com/Sidewalk/menu_kontakt_inaktiv.gif';
document.menu_priser.src = Image4.src; return true;
}
function change5() {
document.menu_forside.src='http://www.worldofmi.com/Sidewalk/menu_forside_inaktiv.gif';
document.menu_profil.src='http://www.worldofmi.com/Sidewalk/menu_profil_inaktiv.gif';
document.menu_produkter.src='http://www.worldofmi.com/Sidewalk/menu_produkter_inaktiv.gif';
document.menu_priser.src='http://www.worldofmi.com/Sidewalk/menu_priser_inaktiv.gif';
document.menu_kontakt.src='http://www.worldofmi.com/Sidewalk/menu_kontakt_inaktiv.gif';
document.menu_kontakt.src = Image5.src; return true;
}
function hideAll() {
for (var i = 1; i <= 5; ++i)
document.getElementById('div' + i).style.visibility = 'hidden';
}
function show(el_id) {
hideAll();
document.getElementById(el_id).style.visibility = 'visible';
}
</SCRIPT>
</HEAD>
<BODY style="margin: 0px;" onLoad="show('div1'); change1();">
<div id="outer">
<div id="div1"></div>
<div id="div2">Stuff goes here</div>
<div id="div3">Stuff goes here</div>
<div id="div4">Stuff goes here</div>
<div id="div5">Stuff goes here</div>
<table width="769" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="72" height="27"><a href="#" onClick="show('div1'); change1();"><img src="http://www.worldofmi.com/Sidewalk/me...de_inaktiv.gif" name="menu_forside"></a></td>
<td width="72" height="27"><a href="#" onClick="show('div2'); change2();"><img src="http://www.worldofmi.com/Sidewalk/me...il_inaktiv.gif" name="menu_profil"></a></td>
<td width="72" height="27"><a href="#" onClick="show('div3'); change3();"><img src="http://www.worldofmi.com/Sidewalk/me...er_inaktiv.gif" name="menu_produkter"></a></td>
<td width="72" height="27"><a href="#" onClick="show('div4'); change4();"><img src="http://www.worldofmi.com/Sidewalk/me...er_inaktiv.gif" name="menu_priser"></a></td>
<td width="72" height="27"><a href="#" onClick="show('div5'); change5();"><img src="http://www.worldofmi.com/Sidewalk/me...kt_inaktiv.gif" name="menu_kontakt"></a></td>
<td width="409" height="20"><img src="<A href="http://www.worldofmi.com/Sidewalk/sidewalk_under.jpg"></td">http://www.worldofmi.com/Sidewalk/sidewalk_under.jpg"></td>
</tr>
<tr>
<td width="769" height="22" colspan="6" background="bg.jpg"></td>
</tr>
</table>
</div>
</BODY>
</HTML>
Hope that helps.
Paul
Bookmarks