[thelist] CSS Guidance
Gina Anderson
gina at sitediva.com
Sun Nov 23 15:32:58 CST 2003
Manuel,
Ah-ha! Thank you! This does indeed work. I'm having a hard time wrapping my
head around this part of CSS..the positioning as well. Thanks a bunch,
you've made my day!
Gina
-----Original Message-----
From: Manuel González Noriega [mailto:manuel at simplelogica.net]
Sent: Sunday, November 23, 2003 4:16 PM
To: thelist at lists.evolt.org; gina at sitediva.com
Subject: Re: [thelist] CSS Guidance
Gina Anderson wrote:
>I tried in the stylesheet:
>
> img.blogbody {
> border: 1px solid #DEDEDE;
> padding: 4px;
> }
>
>Obviously puts a border around ALL the images, which I don't want. Why
>doesn't img.blogbody work? Can I do this without having to put a class in
>the img src code, because I REALLY don't want to. :)
>
>
>
Yes, you can :)
img.blogbody only selects a <img> element of class "blogbody", that you
don't have.
What you want is a img that is inside of a div class="blogbody". The way
to express that with a CSS rule is
div.blogbody img {
border: 1px solid #DEDEDE;
padding: 4px;
}
Now that should work.
--
Manuel González Noriega
Simplelógica, construcción web @ http://simplelogica.net
Logicola es el weblog de Simplelógica http://simplelogica.net/logicola/
More information about the thelist
mailing list