[thelist] CSS Guidance

Bill Hughey zephod at drizzle.com
Sun Nov 23 19:58:20 CST 2003


Try

blogbody.img {....}

The order should be important (parent-child relationships).


----- Original Message ----- 
From: "Gina Anderson" <gina at sitediva.com>
To: <thelist at lists.evolt.org>
Sent: Sunday, November 23, 2003 1:07 PM
Subject: [thelist] CSS Guidance


> Hi all,
>
> I'm having a little trouble with something I'm trying to do in CSS. I have
a
> <div class="blogbody"> that surrounds paragraphs of text, and any image in
> that div that I display, I want to put a border around. I thought I could
do
> this without a class.
>
> I tried in the stylesheet:
>
> img.blogbody {
> border: 1px solid #DEDEDE;
> padding: 4px;
> }
>
> Which doesn't seem to work.
>
> img {
> 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. :)
>
> Thanks,
> Gina
>
> -- 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>



More information about the thelist mailing list