You would do the following.


ul.video{items for ul}
ul.video li {items for the li in ul.video}


Selectors only cascade down.

  _____  

From: William H Bowen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 5:20 PM
To: CF-Community
Subject: Re: CSS selector problem

what about

ul.video {
   attribute: value;
   attribute: value;
   attribute: value;
   attribute: value;
}

li.video {
  otherAttribute: otherValue;
}

wouldn't then ul.li.video inherit attributes from <ul class="video"> but
not explicit in <li class="video">?

will

Kevin Graeme wrote:

> Can I write a selector for a parent object of a tag with a class?
>
> So I have:
>
> <ul>
>   <li class="video">blah</li>
> </ul>
>
> I want to apply a style not only to the LL but also to the UL. "ul
> li.video"
> selects the li tag. Is it possible to select the parent UL though?
>
> Along with this, is it possible to select a tag with any class? I want to
> write "p.*"  to select any paragraph with a a class assigned, but that
> doesn't work.
>
> -Kevin
>
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to