Hola a todos!
Estoy modificando una template wordpress y tengo un pequeño problema:
Hay una img que hereda una regla de su div contenedor y no quiero que lo
haga... he leido que el atributo !important hace que una regla en concreto
anule la herencia venga de donde venga. Quiero cambiar el color del fondo
de una imagen y no logro que funcione. No se que estoy haciendo mal,
alguien puede echarme una mano?
HTML:
<div id="content">
<img class="ilurebe" src="ilu2.png" width="115" height="295" />
</div>
CSS:
#content img {
background-color: #0C6;
border-top-width: 2px;
border-right-width: 2px;
border-bottom-width: 2px;
border-left-width: 2px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
}
.ilurebe {
background-color: #ffffff; !important;
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
}
(perdón por el formateo este cutre del dreamweaver)
Gracias!
_______________________________________________
Lista de distribución Ovillo
Para escribir a la lista, envia un correo a
Ovillo@list...
Puedes modificar tus datos o desuscribirte en la siguiente dirección:
http://lists.ovillo.org/mailman/listinfo/ovillo
opensubscriber is not affiliated with the authors of this message nor responsible for its content.