centrer un menu dans une page
Bonsoir a tous,
De nouveau je rencontre un problème pour centrer un menu
voici le code de ma page
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
| <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" CONTENT="">
<meta HTTP-EQUIV="IMAGETOOLBAR" content="no" SCROLLING="yes" >
<meta name="keywords" CONTENT="">
<style type="text/CSS">
ul {
padding:0;
margin:10;
list-style-type:none;
}
li {
margin-left: 2px;
float:left; /*pour IE*/
}
ul li a {
display:block;
float:left;
width:138px;
background-color:#FFFACD;
color:black;
text-decoration:none;
text-align:center;
-moz-border-radius:10px;
-webkit-border-radius:10px;
border-radius:10px;
-moz-box-shadow:0 0 10px #555;
-webkit-box-shadow:0 0 10px #555;
box-shadow:0 0 10px #555;
padding:5px;
border:2px solid;
/*pour avoir un effet "outset" avec IE :*/
border-color:#696969 #696969 #696969 #696969;
}
ul li a:hover {
background-color:#D3D3D3;
border-color:#696969 #696969 #696969 #696969;
}
</style>
</HEAD>
<BODY>
<ul>
<li><a href="lamer.htm" target="bas">La mer</a></li>
<li><a href="lesvagues.htm" target="bas">Les vagues</a></li>
<li><a href="coucher.htm" target="bas">Coucher de Soleil</a></li>
<li><a href="macro.htm"target="bas">
Macrophotographie</a></li></BR></BR>
<li><a href="v.htm" target="bas">Village </a></li>
<li><a href="lacst.htm" target="bas">Le lac</a></li>
<li><a href="contrej.htm" target="bas">Contre jour</a></li>
<li><a href="cascadrs.htm" target="bas">Cascades</a></li></BR></BR>
<li><a href="mars.htm" target="bas">Mars</a></li>
<li><a href="astro.htm" target="bas">Astronomie</a></li>
<li><a href="mars.htm" target="bas"></a></li>
<li><a href="astro.htm" target="bas"></a></li>
</ul>
</body>
</html> |
Malgrès beaucoup d'éfforts mon menu est centré vers la gauche de ma page alors que je le voudrais en haut au centre
Merci par avance pour vos aides