Nieuw lid | 
                 | 
                
				
				Ik probeer een menuutje te maken met css, maar het wil voor geen meter lukken. Op deze site is die te zien: 
http://www.meputrecht.nl/MK/MEP/index.php 
En hier is de broncode: 
 
style.css 
    
    
        
            
                
* {margin: 0; padding: 0;}
#nav ul {
	background-color: rgb(0,50,80);
	position:relative;
	top:94px;
	font-size:12px;
	z-index:1;
	width:265px;
	height: 20px;
}
#nav ul li {
	display:inline;
	list-style-type: none;
	background-color: rgb(0,50,80);
	border: 1px solid black;
	height:20px;
}
#nav ul li a {
	color: #f5ab1d;
	text-decoration: none;
}
             
            * {margin: 0; padding: 0;} #nav ul { 	background-color: rgb(0,50,80); 	position:relative; 	top:94px; 	font-size:12px; 	z-index:1; 	width:265px; 	height: 20px; } #nav ul li { 	display:inline; 	list-style-type: none; 	background-color: rgb(0,50,80); 	border: 1px solid black; 	height:20px; } #nav ul li a { 	color: #f5ab1d; 	text-decoration: none; } 
 
  
         
          
     
  
 
En hier is het html bestand: 
    
    
        
            
                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Index</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
li {background-color: blue;}
</style>
</head>
<body>
<div id="wrapper">
<div id="logo">
<div id="nav">
<ul>
	<li><a href="?page=Home">Home</a></li>
	<li><a href="?page=Actueel">Actueel</a></li>
	<li><a href="?page=Forum">Forum</a></li>
	<li><a>Informatie</a></li>
        <li><a href="?page=Foto's">Foto's</a></li>
</ul>
</div>
</div>
</div>
</body>
</html>
             
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">   <link href="style.css" rel="stylesheet" type="text/css" /> li {background-color: blue;}   	<li><a href="?page=Home">Home </a></li> 	<li><a href="?page=Actueel">Actueel </a></li> 	<li><a href="?page=Forum">Forum </a></li>         <li><a href="?page=Foto's">Foto's </a></li>     
 
  
         
          
     
  
 
Het rare is dat in FF niet de borders tegen elkaar aan gaan en in IE wel. Hoe zorg ik ervoor dat dit wel lukt. Margin staat op 0 pixels. Dan zouden ze toch tegen elkaar aan moeten komen..				
				 |