Zoek eens op css menu google, dan zie je hoe het moet.
Link gekopieerd
HTML:
<div id="navcontainer">
<ul id="navlist">
<li id="active"><a href="#" id="current">Item one</a></li>
<li><a href="#">Item two</a></li>
<li><a href="#">Item three</a></li>
<li><a href="#">Item four</a></li>
<li><a href="#">Item five</a></li>
</ul>
</div>
CSS:
#navcontainer { width: 200px; }
#navcontainer ul
{
margin-left: 0;
padding-left: 0;
list-style-type: none;
font-family: Arial, Helvetica, sans-serif;
}
#navcontainer a
{
display: block;
padding: 0px;
width: 160px;
background-color: #036;
border-bottom: 1px solid #eee;
}
#navcontainer a:link, #navlist a:visited
{
color: #EEE;
text-decoration: none;
}
#navcontainer a:hover
{
background-color: #369;
color: #fff;
}
Link gekopieerd
Ik heb precies hetzelfde probleem! Weet iemand waardoor het komt :S?
Link gekopieerd
Ik heb precies hetzelfde probleem! Weet iemand waardoor het komt :S?
Link gekopieerd
zet eens bovenaan je css.
*{
padding: 0px;
margin: 0px;
}
Link gekopieerd
Mijn menu css:
* { //deze had ik al, maakt niks uit
margin: 0px;
padding: 0px;
}
ul#menu {
list-style: none;
width: 150px;
padding-left: 0px;
margin-left: 0px;
}
ul#menu li {
margin-top: none;
text-decoration: none;
}
ul#menu li a {
color: #000000;
border: #000000 solid 0px;
background: #FFCC33;
display: block;
height: 100%;
width: 100%;
text-decoration: none;
font-weight: bold;
font: 12px verdana;
}
ul#menu li a:hover {
background: #66CC00;
color: 000000;
border: #000000 solid 0px;
display: block;
text-decoration: none;
font-weight: bold;
}
Mijn bijbehorende html:
<ul id="menu">
<LI><A HREF="index.php"> Home</A></LI>
<LI><A HREF="nieuws.php"> Nieuws & Verslagen</A></LI>
<LI><A HREF="login.php"> Teamleden pagina</A></LI>
<LI><A HREF="contact.php"> Contact</A></LI>
</ul>
Of moet ik nog op een andere plek margin zetten?
Link gekopieerd
Ik heb
hier even een simpel menuutje gegenereerd en daarna naar mijn wensen aangepast, nu werkt het wel.
Link gekopieerd