Je me suis planté de rubrique dans le forum je crois, un modérateur pourra déplacer ce message dans la rubrique CSS
Bonjour à tous,
J'ai créé une feuille de style et elle est valide, c'est déjà bien. Maintenant je n'ai pas encore assez les réflexe d'optimisation d'écriture de feuille de style. Est-ce que vous pouvez y jeter un coup d'oeil rapide pour voir les plus grosses erreures niveau optimisation d'écriture ? Merci
  /* CSS Document */
/* ===DEBUT GENERAL=== */
body {
	margin: 0;
	color: #6c6c6c;
	background: #bfb600 url(img/fond_body.png);
	text-align: center; /* On centre la page */
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
}
img {
	border: 0 none;
}
/* ===FIN GENERAL=== */
/* ===DEBUT PAGE=== */
#page { /* Conteneur centré de tout le site */
	text-align: left; /* On rétablit le texte à gauche */
	width: 760px;
	margin: 0 auto 10px auto; /* Marges gauche et droite auto pour centrer la page */
	position: relative;
	background: #fff;
}
/* ===FIN PAGE=== */
/* ===DEBUT ENTETE=== */
#entete {
	margin: 0;
	height: 114px;
	background: #71abdd url(img/bandeau.jpg);
}
#entete img {
	margin: 20px 0 0 295px;
}
/* ===FIN ENTETE=== */
/* ===DEBUT MENU=== */
#menu {
	position: relative;
	margin: 0;
	float: left;
	width: 154px;
	height: 287px;
	background: #ccc;
}
#bouton {
	margin: 0;
}
/* ===FIN MENU=== */
/* ===DEBUT CONTENU=== */
#contenu h1 {
	margin: 10px 0 0px 0;
	padding: 0;
	color: #fe8713;
	font-size: 14px;
	font-weight: bold;
	font-family: Arial, Helvetica, sans-serif;
	text-transform: uppercase;
	border-bottom: 1px dashed #fe8713;
}
#contenu h2 {
	margin: 20px 0 8px 7px;
	padding: 0 0 0 15px;
	color: #cec700;
	font-size: 10px;
	font-weight: bold;
	text-transform: uppercase;
	border-bottom: 1px dotted #bdbbb1;
	background: url(img/puce_h2.png) no-repeat;
}
#contenu h3 {
	margin: 20px 0 10px 8px;
	padding: 0;
	text-align: justify;
	color: #fe8713;
	font-size: 10px;
	font-weight: bold;
}
#contenu p {
	margin: 0 0 10px 8px;
	padding: 0;
	text-align: justify;
}
strong {
	font-weight: bold;
}
#contenu ul {
	margin: 0 0 0 22px;
	padding: 0;
	list-style: none;	
}
#contenu li {
	margin: 0 0 5px 0;
	padding: 5px 0 0 13px;
	background: url(img/puce_liste.png) no-repeat;
}
#contenu {
	margin: 0;
	float: left;
	width: 606px;
	background: url(img/fond_contenu.png);	
}
#contenumarge {
	margin: 0 88px 0 55px;
}
#contenu a {
	position: relative;
	color: #fe8713;
	text-decoration: underline;
}
#contenu a span {
	display: none;
}
#contenu a:hover {
	text-decoration: none;
	background: none;
	z-index: 500;
}
#contenu a:hover span {
	text-align: justify;
	color: #6c6c6c;
	display: block;
	bottom: 2em;
	left: -2em;
	width: 30em;
	font-weight: bold;
	position: absolute;
	background: #fff url(img/fond_info.png) repeat-y;
	border-right: #CCCCCC  solid 2px;
	border-bottom: #CCCCCC solid 1px;
	padding: 0.5em 1em 0.5em 2.5em;
	z-index: 500;
}
#contenu #mentions {
	margin: 0 0 10px 7px;
	padding: 30px 0 0 0;
	color: #cec700;
}
#contenu #mentions li {
	margin: 0 0 10px 0;
	padding: 0;
	float: left;
	background: none;
}
#contenu #mentions a {
	color: #cec700;
	font-weight: bold;
}
#contenu #mentions a:hover span {
	background: #fff url(img/fond_enavant.png) repeat-y;
}
.imggauche {
	margin: 0 8px 0 15px;
	float: left;
}
.imgdroite {
	margin: 0 0 0 8px;
	float: right;
}
#contenu .enavant {
	margin: 0 0 0 7px;
	padding: 5px 0 5px 22px;
	background: url(img/fond_enavant.png) repeat-y;
}
#contenu .enavant li {
	background: url(img/puce_liste_enavant.png) no-repeat;
}
/* ===FIN CONTENU=== */
/* ===DEBUT PIED DE PAGE=== */
#pied {
	margin: 0;
	padding: 0;
	background: #bfb600 url(img/fond_pied.png);
	height: 6px;
	clear: both;	
}
/* ===FIN PIED DE PAGE=== */
  
 Modifié par tankia (18 Nov 2006 - 12:47)[/edit]