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
>
> ----- Original Message -----
> From: "William H Bowen" <[EMAIL PROTECTED]>
> To: "CF-Community" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 28, 2004 4:19 PM
> 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
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
