28220 sujets

CSS et mise en forme, CSS3

Bonjour

Voilà j'ai suivi un tutoriel d'alsa pour faire un menu avec les listes mais je n'arrive pas a le centrer dans mon bloc.


ul {
  list-style-type: none;
	margin: 0px;
  width: 100%;
}

#blocmenu {
	clear: both;
	width: 500px;
	height: 15px;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 25px;
	margin-top: 0px;
}
#menu li {
  padding:1px;
	float: left;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-right-color: #B7C4A3;
	border-bottom-color: #B7C4A3;
	border-left-width: 1px;
	border-left-style: solid;
	border-left-color: #B7C4A3;
}
#menu a {
  margin: 0px;
  width: 100px;
  height: 15px;
  display: block;
  text-align: center;
  border: 0px;
  text-decoration: none;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #FFFFFF;
	font-weight: normal;
	text-align: center;
  background: #CC9966;
}



Voilà en fait le tout se trouve dans le div blocmenu
Sinon rien a voir mais au passage je croyais que .style etait utilisé pour plusieurs elements et que #style ne pouvais s'appliquais a un seul element... or la sur une liste il ya plusieurs elements.. pourquoi utiliser # ??
Je t'indiquerai ce lien pour bien comprendre la différence entre id et class

Pour ton menu je vais essayer de regarder
Modifié par GuizBizet (28 Apr 2005 - 16:30)