Doesn't it sort of work that way by default? I mean, if you have an
unstyled UL it would automatically take on the effect designated by a
styled LI, no? I come to this conclusion because without defining base
properties for the UL explicitly you're doing it tacitily in the def of
the LI
so using my earlier example, removing the ul attribute/value pairs
you're left only with the attributes of the LI, and since the UL doesn't
really do anything other than indent when used without an LI you've got
the same net result. and other ULs are not affected.
I think...
will
Kevin Graeme wrote:
> :-)
>
> 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]
