No necesita dos <divs>
y <a>
para hacer el botón. Puede hacerlo con un solo <a>
. Tanto para las imágenes como para el botón, puede usar box-shadow
para hacer el borde exterior. Centre el background-images
en los elementos <img>
.
Demostración: http://jsfiddle.net/ThinkingStiff/bNmzB/
Salida:
HTML:
<a id="add" href="#">Add To Cart</a>
<img id="facebook" class="icon" />
<img id="twitter" class="icon" />
<img id="email" class="icon" />
CSS:
#add {
background-color: #9bc9c7;
border: 1px solid white;
box-shadow: 0 0 0 2px #9bc9c7;
color: white;
display: inline-block;
font: normal 13px/25px Helvetica, Arial, Sans Serif;
height: 25px;
margin-right: 6px;
text-align: center;
text-decoration: none;
text-transform: uppercase;
width: 120px;
vertical-align: top;
}
#add:hover {
background-color: #eabeb2;
box-shadow: 0 0 0 2px #eabeb2;
}
.icon {
background-color: rgb(155, 201, 199);
border: 1px solid white;
box-shadow: 0 0 0 2px rgb(155, 201, 199);
height: 25px;
margin-right: 3px;
width: 25px;
}
no sería sólo correo ¿Asier agregarlo a la imagen? – Brettski
Primero, ¿cómo harías eso? Segundo, digamos que no lo es. – john
Pintura.net Photoshop – Brettski