opensubscriber
   Find in this group all groups
 
Unknown more information…

o : ovillo@lists.ovillo.org 10 May 2012 • 8:06PM -0400

[Ovillo] Herencias css
by Vincent Grönholm Olson

REPLY TO AUTHOR
 
REPLY TO GROUP




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

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.