aliceinwonderla
10-28-2010, 08:37 AM
hi friends,
i have a content div, aptly classed "content".
in my content css i specify that i want all images resized to 590px.
however, i have just ONE kind of image which sits inside a div with it's own class, "author" (which sits inside the "content" div). i'd like the image inside the author div to be a different size - 300px to be precise.
I tried just putting in
.author img{
max-width:300px;
min-width: 300px;
height: auto;
}
but the .content img code is overriding the .author img code i guess because of the heirachy of the div or whatever.
any way to fix this?
x
i have a content div, aptly classed "content".
in my content css i specify that i want all images resized to 590px.
however, i have just ONE kind of image which sits inside a div with it's own class, "author" (which sits inside the "content" div). i'd like the image inside the author div to be a different size - 300px to be precise.
I tried just putting in
.author img{
max-width:300px;
min-width: 300px;
height: auto;
}
but the .content img code is overriding the .author img code i guess because of the heirachy of the div or whatever.
any way to fix this?
x