Ik heb een probleem met mijn website en het probleem ligt 'em in het uiterlijk van firefox.
Ik heb een layout gemaakt in Photoshop, deze hebben ik gesliced etc etc. Nu heb ik alles in elkaar gezet, alleen in Firefox verschuift het menu naar rechts, echter is dit probleem niet in Internet Explorer 7, hier staat het menu netjes in het midden.
Ik dacht in eerste instantie het op te kunnen lossen met margins, alleen verschuift dit weer in Internet Explorer 7.
Mijn CSS:
<style type="text/css">
/* INDELING */
body{
text-align: center;
font: 12px;
font-family: Arial;
}
#total {
font-family: Arial;
position: center;
width: 939px;
margin-right: auto;
margin-left: auto;
text-align: center;
}
#header {
height: 118px;
width: 939px;
text-align: center;
background-image: url(afbeeldingen/header.gif);
background-repeat: no-repeat;
}
#menu {
margin-left: auto;
margin-right: auto;
height: 37px;
width: 939px;
}
#news {
height: 32px;
width: 939px;
background-image: url(afbeeldingen/boven.gif);
background-repeat: no-repeat;
}
#links {
text-align: left;
float: left;
height: 535px;
width: 12px;
background-image: url(afbeeldingen/links.gif);
background-repeat: no-repeat;
}
#content {
text-align: center;
float: left;
height: 535px;
width: 758px;
background-image: url(afbeeldingen/content.gif);
background-repeat: no-repeat;
}
#rechtsmid {
float: left;
height: 535px;
width: 26px;
background-image: url(afbeeldingen/rechtsmid.gif);
background-repeat: no-repeat;
}
#rechtscontent {
float: left;
height: 535px;
width: 120px;
background-image: url(afbeeldingen/rechts_content.gif);
background-repeat: no-repeat;
}
#rechts {
float: left;
height: 535px;
width: 23px;
background-image: url(afbeeldingen/rechts.gif);
background-repeat: no-repeat;
}
#onder {
float: left;
height: 15px;
width: 939px;
background-image: url(afbeeldingen/onder.gif);
background-repeat: no-repeat;
}
#footer {
font-size: 10px;
height: 14px;
width: 939px;
clear: both;
text-align: center;
}
/* MENU HORIZONTAAL */
ul {
list-style-type: none;
height: 37px;
width: 940px;
margin: 0;
}
li {
margin-left: auto;
margin-right: auto;
float: left;
}
ul a {
text-align: center;
background-image: url(afbeeldingen/btn_normal.gif);
background-repeat: no-repeat;
}
ul li a:hover
{
display:block;
text-align: center;
background-image: url(afbeeldingen/btn_hover.gif);
width: 94;
height: 37;
color: #FFFFFF;
}
ul a:visited
{
display:block;
text-align:center;
background-image: url(afbeeldingen/btn_normal.gif);
width: 94;
height: 37;
text-decoration: none;
font-family: Arial, Veranda;
size: 12;
color: #c1c1c1;
}
ul a:active
{
display:block;
text-align:center;
background-image: url(afbeeldingen/btn_normal.gif);
width:94;
height: 37;
text-decoration: none;
font-family: Arial, Veranda;
size: 12;
color: #c1c1c1;
}
ul a:link
{
display: block;
text-align:center;
background-image: url(afbeeldingen/btn_normal.gif);
width: 94;
height: 37;
text-decoration: none;
font-family: Arial, Veranda;
size: 12;
color: #c1c1c1;
}
</style>
Hier mijn HTML:
<html>
<head />
<body>
<div id="total">
<!-- RESET HTML SIZE -->
<style type="text/css">
<!--
body{
text-align: center;
margin-right: auto;
margin-left: auto;
background-color: #000000;
}
-->
</style>
<!-- EIND RESET HTML SIZE -->
<div id="header">
</div>
<div id="menu">
<ul>
<li><a href="#" class="ul">Home</a></li>
<li><a href="#" class="ul">Contact</a></li>
<li><a href="#" class="ul">Registreren</a></li>
<li><a href="#" class="ul">Inloggen</a></li>
<li><a href="#" class="ul">Forum</a></li>
<li><a href="#" class="ul">Gastenboek</a></li>
<li><a href="#" class="ul">Test1</a></li>
<li><a href="#" class="ul">Test2</a></li>
<li><a href="#" class="ul">Test3</a></li>
<li><a href="#" class="ul">Test4</a></li>
</ul>
</div>
<div id="news">
</div>
<div id="links">
</div>
<div id="content">
<font class="mid">Welkom op de nieuw site!</font>
</div>
<div id="rechtsmid">
</div>
<div id="rechtscontent">
</div>
<div id="rechts">
</div>
<div id="onder">
</div>
<div id="footer">
<font class="warn">
Blabla bla copyright
</font>
</div>
</div>
</body>
</html>
Voorbeeld:
http://www.zimblox.nl/test.html
Alvast bedankt.