Hola a todos, estoy aprendiendo a modelar o maquetar con CSS y estoy haciendo una portada, por cada boton tengo que hacer como 7 lineas, para iinsertarlo, y despues otras tantas para hacer que pase el maus sobre el boton y cambie de estado, queria saber si se puede simplificar lo que estoy haciendo.. dejo codigo.
Código CSS:
Ver original@charset "utf-8";
/* CSS Document */
body { text-align:center;
background:#000;
}
.cabecera{
width:900px;/*ANCHO*/
height:170px;/*ALTO*/
border:solid;
position: absolute;
/*nos posicionamos en el centro del navegador*/
/*top:50%;*/
left:50%;
/*indicamos que el margen izquierdo, es la mitad de la anchura*/
margin-left:-450px;
padding:5px;
}
.imag_01{ /*IMAGEN NUMERO 1*/
position:absolute;
width:309px;
height:36px;
background-image:url(Imag_cabe_byton/byton_r1_c1.jpg);}
.imag_02{ /* BOTON INICIO*/
position:absolute;
width:67px;
height:36px;
background-image:url(Imag_cabe_byton/byton_r1_c2.jpg);
left:309px;
}
.imag_03{ /* BOTON RESELLER*/
position:absolute;
width:68px;
height:36px;
background-image:url(Imag_cabe_byton/byton_r1_c3.jpg);
left:377px;}
.imag_04{/* BOTON PRODUCTOS */
position:absolute;
width:87px;
height:36px;
background-image:url(Imag_cabe_byton/byton_r1_c4.jpg);
left:446px;}
.imag_05{/* BOTON SERVICIOS */
position:absolute;
width:87px;
height:36px;
background-image:url(Imag_cabe_byton/byton_r1_c5.jpg);
background-repeat:no-repeat;
cursor:pointer;
left:533px;}
.imag_05:hover{/* BOTON SERVICIOS */
position:absolute;
width:87px;
height:36px;
/*background-image:url(Imag_cabe_byton/byton_r1_c5.jpg);*/
background-image:url(Imag_cabe_byton/byton_r1_c7.jpg);
background-repeat:no-repeat;
cursor:pointer;
left:533px;
/*height: 100px; width: 200px; border: solid #f00;}*/
}
.imag_05 a {display: block; width: 87px; height: 36px;}