:-)

The UL does not have a class assigned to it, nor is it generically defined
in a style sheet with base properties. What I wanted to do was to say "If
there is an unclassed UL that has any LI with a particular class, style the
UL like so. But leave any other UL alone."

What I wanted was something like:

li.(video,book,web) < UL:parent {style like so;}

-Kevin

----- Original Message -----
From: "William H Bowen" <[EMAIL PROTECTED]>
To: "CF-Community" <[EMAIL PROTECTED]>
Sent: Thursday, January 29, 2004 11:31 AM
Subject: Re: CSS selector problem

> Damn...coulda sworn that was what you asked for...
>
> :-)
>
> I guess I'm not understanding (and I realize you already did it with
> tables...but for some reason this is sticking in my craw)
>
> You have a UL that is defined in a style sheet right? It has certain
> base properties (padding, line-height, etc.)
>
> Then you want to assign a class to LI (video, book,etc.) elements right?
>
> And you want to have the LI inherit attributes from the UL?
>
> will
>
>
> Kevin Graeme wrote:
>
> > Nope, but thanks again. :-)
> >
> > -Kevin
> >
> > ----- Original Message -----
> > From: "William H Bowen" <[EMAIL PROTECTED]>
> > To: "CF-Community" <[EMAIL PROTECTED]>
> > Sent: Wednesday, January 28, 2004 7:24 PM
> > Subject: Re: CSS selector problem
> >
> > > hrmmm...
> > >
> > > ul is defined in the style tag as having certain base properties thus
> > > every ul using that style will be formatted this way, li within ul can
> > > have own class and inherit base attributes.
> > >
> > > Kid tested...mother approved:
> > >
> > > <deletia/>
> > > <style type="text/css">
> > >     ul    {
> > >         font-size:12px;
> > >         font-weight:bold;
> > >         line-height:50px;
> > >         color: blue;
> > >     }
> > >     ul li.video {
> > >         color: pink;
> > >         list-style-type: disc;
> > >         }
> > >     ul li.book {
> > >         color:red;
> > >         font-weight:normal;
> > >         list-style-type: square;
> > >         }
> > > </style>
> > > </head>
> > >
> > > <body>
> > >
> > > Below is a list:
> > >
> > > <ul>
> > > <li class="video">class=Video</li>
> > > <li class="book">class=Book</li>
> > > <li>No class</li>
> > > </ul>
> > > <deletia/>
> > >
> > > Does this do what you wanted?
> > >
> > > HTH
> > > will
> > >
> > >
> > > Kevin Graeme wrote:
> > >
> > > > I was trying to avoid assigning a class to the UL.
> > > >
> > > > -Kevin
> > > >
> >
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to