Grafische gevorderde |
|
Hmm ik zit met een aanzienlijk probleem met IE (zoals gewoonlijk -_-)
als je naar http://www.aycewebdesign.com/v3 gaat in beide FF en IE, zie je dat in IE van de 'up' button boven 2px is afgesneden, en links en rechts 1px. Ik vind dit zelf vaag :S want margin negatief moet toch gewoon werken?
Mijn CSS
/* Navigation */
.nav-bar {
position: relative;
margin-left: 1px;
height: 22px;
}
.nav-bar ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.nav-bar ul li {
display: inline;
margin: 0;
padding: 0;
}
.nav-bar ul li a.down {
float: left;
background-image: url("gfx/button-down.gif");
background-repeat: no-repeat;
font-size: 10px;
font-weight: bold;
text-align: center;
text-transform: uppercase;
padding-top: 6px;
width: 100px;
height: 20px;
}
.nav-bar ul li a:hover, .up {
float: left;
background-image: url("gfx/button-up.gif");
background-repeat: no-repeat;
font-size: 11px;
font-weight: bold;
text-align: center;
text-transform: uppercase;
padding-top: 6px;
margin-top: -2px;
margin-left: -1px;
margin-right: -1px;
width: 102px;
height: 27px;
}
/* Navigation */ .nav-bar { position: relative; margin-left: 1px; height: 22px; } .nav-bar ul { list-style-type: none; margin: 0; padding: 0; } .nav-bar ul li { display: inline; margin: 0; padding: 0; } .nav-bar ul li a.down { float: left; background-image: url("gfx/button-down.gif"); background-repeat: no-repeat; font-size: 10px; font-weight: bold; text-align: center; text-transform: uppercase; padding-top: 6px; width: 100px; height: 20px; } .nav-bar ul li a:hover, .up { float: left; background-image: url("gfx/button-up.gif"); background-repeat: no-repeat; font-size: 11px; font-weight: bold; text-align: center; text-transform: uppercase; padding-top: 6px; margin-top: -2px; margin-left: -1px; margin-right: -1px; width: 102px; height: 27px; }
Mijn XHTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>AYCE Webdesign</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<script type="text/javascript" src="javascript.js"></script>
</head>
<body>
<div class="back-cont"><!-- Back-gradient --></div>
<div class="text-cont">
<div class="nav-bar">
<ul class="nav-list">
<li id="active"><a id="current" class="up" href="#">Home</a></li>
<li><a class="down" onMouseOver="changeTab(0);" onMouseOut="changeTab(1);" href="#">Services</a></li>
<li><a class="down" onMouseOver="changeTab(0);" onMouseOut="changeTab(1);" href="#">AYCE</a></li>
<li><a class="down" onMouseOver="changeTab(0);" onMouseOut="changeTab(1);" href="#">Portfolio</a></li>
</ul>
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>AYCE Webdesign</title> <link rel="stylesheet" href="style.css" type="text/css" /> <script type="text/javascript" src="javascript.js"></script> </head> <body> <div class="back-cont"><!-- Back-gradient --></div> <div class="text-cont"> <div class="nav-bar"> <ul class="nav-list"> <li id="active"><a id="current" class="up" href="#">Home</a></li> <li><a class="down" onMouseOver="changeTab(0);" onMouseOut="changeTab(1);" href="#">Services</a></li> <li><a class="down" onMouseOver="changeTab(0);" onMouseOut="changeTab(1);" href="#">AYCE</a></li> <li><a class="down" onMouseOver="changeTab(0);" onMouseOut="changeTab(1);" href="#">Portfolio</a></li> </ul> </div> </div> </body> </html>
Hoe kan ik dit oplossen?
|