Bonjour (ou plutôt bonsoir !)
,
J'ai un p'tit soucci pour centrer horizontallement mon menu http://orphee.perso.cegetel.net/le_peintre2.html . Voici le css :
Donc, je voudrais que les menu(s) de 1er et de 2ème niveau soient centrés horizontallement. J'ai beau cheché (pas assez j'imagine
)
Merci d'avance
Modifié par d0d0shez (09 May 2006 - 20:13)

J'ai un p'tit soucci pour centrer horizontallement mon menu http://orphee.perso.cegetel.net/le_peintre2.html . Voici le css :
body
{
margin: 10px 0 ;
padding: 0 ;
text-align: center ;
font: 0.8em "Trebuchet MS", helvetica, sans-serif ;
background: #000000 ;
}
div#conteneur
{
width: 760px ;
margin: 0 auto ;
text-align: left ;
border: 2px solid #ffffff ;
background: #000000 ;
}
h1#header
{
height: 100px ;
background: url("../images/banniere2.png") no-repeat left top ;
margin: 0 ;
}
ul#menu
{
height: 35px ;
margin: 0 ;
padding: 0 ;
background: url(bg_menu.gif) repeat-x 0 -25px ;
list-style-type: none ;
}
div#contenu
{
padding: 0 25px 0 25px ;
color: #ffffff ;
}
div#contenu h2
{
padding-top: 50px ;
padding-bottom: 10px ;
line-height: 0px ;
font-size: 1.4em ;
color: #c4bcbc ;
border-bottom: 1px solid #FFD700 ;
}
div#contenu h3
{
margin-left: 15px ;
padding-left: 5px ;
border-bottom: 1px solid #ffffff ;
border-left: 3px solid #ffffff ;
color: #c4bcbc ;
}
div#contenu p
{
text-align: justify ;
text-indent: 2em ;
line-height: 1.7em ;
}
div#contenu a
{
color: #ffffff ;
}
div#contenu a:hover
{
color: #ffffff ;
}
p#footer
{
margin: 0 ;
padding-right: 10px ;
line-height: 30px ;
text-align: right ;
color: #8a0 ;
}
pre
{
overflow: auto ;
background: #dea ;
border: 2px solid #9b2 ;
padding: 5px 0 0 5px ;
font-size: 1.2em ;
}
* html pre
{
width: 636px ;
}
pre span
{
color: #560 ;
}
pre span.comment
{
color: #b30000 ;
}
dt, dl, dd, ul, li {
margin: 0 10px 0 0;
padding: 0;
}
#menu {
position: relative;
margin-left: auto;
margin-right: auto;
width: 760px;
text-align: left;
}
#menu dl {
float: left;
font-size: 1.2em;
letter-spacing: 4px ;
border-right: 2px solid #FFD700;
}
#menu li {
display: inline;
border-right: 2px solid #FFD700;
}
#menu a {
font-size: 1em;
font-weight: bold ;
}
#smenu1, #smenu2, #smenu3, #smenu4 {
position: absolute;
left: 0;
letter-spacing: 1px ;
width: 600px;
}
a {text-decoration: none;
color: #ffffff;
}
Donc, je voudrais que les menu(s) de 1er et de 2ème niveau soient centrés horizontallement. J'ai beau cheché (pas assez j'imagine

Merci d'avance

Modifié par d0d0shez (09 May 2006 - 20:13)