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