Le principe est simple, tu dois positionner ton image avant ton menu dans l'HTML. Inutile de créer une si grande image pour un si petit logo, dans mon exemple le logo fait 150px de large sur 50px de haut. Le menu a une hauteur de 100% et un background blanc.
RENDU:
CODE HTML:
<!DOCTYPE html>
<html lang="fr">
<body>
<div id="menu">
<img src="style/logo.jpg" alt="Nuli">
<ul>
<li><a href="#">Lorem ipsum</a></li>
<li><a href="#">Dolor sit</a></li>
<li><a href="#">Amet consectetur</a></li>
<li><a href="#">Adipiscing elit</a></li>
</ul>
</div>
</body>
</html>
CODE CSS:
html, body
{
width:100%;
height:100%;
}
body
{
margin:0;
padding:0;
background:#f5f5dc;
}
- menu{
width:150px;
height:100%;
background:white;
}
- menu img{
display:block;
}
- menu ul{
list-style-type:none;
margin:0;
padding:0;
}
- menu ul li{
width:150px;
height:auto;
padding-top:8px;
padding-bottom:8px;
border-top:2px solid #f5f5dc;
border-bottom:2px solid #f5f5dc;
text-align:center;
}
- menu ul li a{
color:grey;
text-decoration:none;
}
- menu ul li a:hover{
color:black;
}