Lid |
|
oke ik heb een menu op mijn site in een div.
alleen komt het menu niet goed in die div bij komt voor de helft door de border
aan de onderkant heen.
wat raar is want het menu is niet te groot voor die div en heb hem ook geen padding mee gegeven.
ik hoop dat iemand mij kan helpen
hier is de code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="beschrijving van de webpagina" />
<meta name="keywords" content="trefwoorden, gescheiden, door, komma's" />
<LINK HREF="css/mainstyle.css" REL="stylesheet" TYPE="text/css">
<title> -- </title>
</head>
<body>
<div id="inhoud">
<div id="head"> </div>
<div id="menu">
<ul>
<li><a href="" class="sub">Home</a></li>
<li><a href="#">Products</a>
<ul>
<li><a href="" class="sub">After-Life</a></li>
<li><a href="" class="sub">Evil Blood</a></li>
<li><a href="" class="sub">Freaking Fit</a></li>
<li><a href="" class="sub">Insane Test</a></li>
<li><a href="" class="sub">Killer Vites</a></li>
<li><a href="" class="sub">Madhouse Whey</a></li>
<li><a href="" class="sub">Passed Out</a></li>
<li><a href="" class="sub">Psycho Test</a></li>
<li><a href="" class="sub">Ripped to the bone</a></li>
<li><a href="" class="sub">Sick Bricks</a></li>
<li><a href="" class="sub">Skeleton Bullets</a></li>
<li><a href="" class="sub">Skeleton Powder</a></li>
<li><a href="" class="sub">Training Log</a></li>
<li><a href="" class="sub">Zombie Dust</a></li>
</ul>
</li>
<li><a href="">Web Shop</a>
<ul>
</ul>
</li>
<li><a href="">About us</a>
</li>
<li><a href="">Ingredients</a>
<ul>
<li><a href="" class="sub">Amino Acids</a></li>
<li><a href="" class="sub">Carbohydrates</a></li>
<li><a href="" class="sub">Creatine</a></li>
<li><a href="" class="sub">Diet</a></li>
<li><a href="" class="sub">Energizers</a></li>
<li><a href="" class="sub">Glutamine</a></li>
<li><a href="" class="sub">Pre-workout</a></li>
<li><a href="" class="sub">Post-workout</a></li>
<li><a href="" class="sub">Protein</a></li>
<li><a href="" class="sub">Minerals</a></li>
<li><a href="" class="sub">Muscle Enhancers</a></li>
<li><a href="" class="sub">Vitamins</a></li>
</ul></li>
<li><a href="">Links</a>
</li>
<li><a href="">Contact</a>
</li><ul>
<ul>
</ul>
</ul>
</ul>
</div>
<div id="hooftvak">
<div id="hooftvakpicture"> </div>
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="description" content="beschrijving van de webpagina" /> <meta name="keywords" content="trefwoorden, gescheiden, door, komma's" /> <LINK HREF="css/mainstyle.css" REL="stylesheet" TYPE="text/css"> <li><a href="" class="sub">Home </a></li> <li><a href="#">Products </a> <li><a href="" class="sub">After-Life </a></li> <li><a href="" class="sub">Evil Blood </a></li> <li><a href="" class="sub">Freaking Fit </a></li> <li><a href="" class="sub">Insane Test </a></li> <li><a href="" class="sub">Killer Vites </a></li> <li><a href="" class="sub">Madhouse Whey </a></li> <li><a href="" class="sub">Passed Out </a></li> <li><a href="" class="sub">Psycho Test </a></li> <li><a href="" class="sub">Ripped to the bone </a></li> <li><a href="" class="sub">Sick Bricks </a></li> <li><a href="" class="sub">Skeleton Bullets </a></li> <li><a href="" class="sub">Skeleton Powder </a></li> <li><a href="" class="sub">Training Log </a></li> <li><a href="" class="sub">Zombie Dust </a></li> <li><a href="">Web Shop </a> <li><a href="">About us </a> <li><a href="">Ingredients </a> <li><a href="" class="sub">Amino Acids </a></li> <li><a href="" class="sub">Carbohydrates </a></li> <li><a href="" class="sub">Creatine </a></li> <li><a href="" class="sub">Diet </a></li> <li><a href="" class="sub">Energizers </a></li> <li><a href="" class="sub">Glutamine </a></li> <li><a href="" class="sub">Pre-workout </a></li> <li><a href="" class="sub">Post-workout </a></li> <li><a href="" class="sub">Protein </a></li> <li><a href="" class="sub">Minerals </a></li> <li><a href="" class="sub">Muscle Enhancers </a></li> <li><a href="" class="sub">Vitamins </a></li> <li><a href="">Contact </a> <div id="hooftvakpicture"> </div>
en de css
body{
background-repeat:no-repeat;
width:100%;
height:100%;
background-image: url(../img/back2.jpg);
}
div{
border: 1px solid black;
color: white;
margin:0px;
padding:0px;
}
#inhoud{
width:1000px;
height:920px;
margin-left: auto;
margin-right: auto;
}
#head{
width:100%;
height:200px;
font-size:33px;
}
#menu {
height: 26px;
width: 100%;
margin: 0 auto;
border-top: 1px solid black;
border-right: 1px solid black;
border-left: 1px solid black;
border-bottom: 1px solid black;
background-color: red;
}
#menu ul {
list-style-type: none;
}
#menu ul li {
float: left;
width: 128px;
position: relative;
}
#menu li a:link, #menu li a:visited {
display: block;
width: 127px;
height: 22px;
border-right: 1px solid black;
padding-top: 4px;
text-align: center;
font-size: 13px;
text-decoration: none;
text-transform: uppercase;
color: white;
font-weight: bold;
}
#menu li a:hover, #menu li li a.sub:hover {
background-color: red;
}
#menu li ul {
width: 128px;
border-top: 1px solid black;
position: absolute;
left: -10000px;
top: 1px;
font-size: 14px;
}
#menu li li a:link, #menu li li a:visited {
display: block;
width: 121px;
height: 22px;
background-color: red;
border-right: 0;
padding-left: 8px;
padding-top: 4px;
text-align: left;
text-decoration: none;
text-transform: none;
color: white;
font-size: 14px;
}
#menu li:hover ul {
display: block;
left: -1px;
top: 26px;
}
#hooftvak{
border-left: 0;
border-right:0;
margin-top:1em;
width:100%;
height:500px;
}
body{ background-repeat:no-repeat; width:100%; height:100%; background-image: url(../img/back2.jpg); } div{ border: 1px solid black; color: white; margin:0px; padding:0px; } #inhoud{ width:1000px; height:920px; margin-left: auto; margin-right: auto; } #head{ width:100%; height:200px; font-size:33px; } #menu { height: 26px; width: 100%; margin: 0 auto; border-top: 1px solid black; border-right: 1px solid black; border-left: 1px solid black; border-bottom: 1px solid black; background-color: red; } #menu ul { list-style-type: none; } #menu ul li { float: left; width: 128px; position: relative; } #menu li a:link, #menu li a:visited { display: block; width: 127px; height: 22px; border-right: 1px solid black; padding-top: 4px; text-align: center; font-size: 13px; text-decoration: none; text-transform: uppercase; color: white; font-weight: bold; } #menu li a:hover, #menu li li a.sub:hover { background-color: red; } #menu li ul { width: 128px; border-top: 1px solid black; position: absolute; left: -10000px; top: 1px; font-size: 14px; } #menu li li a:link, #menu li li a:visited { display: block; width: 121px; height: 22px; background-color: red; border-right: 0; padding-left: 8px; padding-top: 4px; text-align: left; text-decoration: none; text-transform: none; color: white; font-size: 14px; } #menu li:hover ul { display: block; left: -1px; top: 26px; } #hooftvak{ border-left: 0; border-right:0; margin-top:1em; width:100%; height:500px; }
|