html I was trying to work with:
<ul>
<li class="video">Something about a video</li>
<li class="book">Something about a book</li>
<li class="web">Something about a web site</li>
<li class="pdf">Something about a pdf document</li>
</ul>
I wanted to have the bullets have icons relevant to the subject matter. In
addition I wanted the entire list to have some padding and such. I didn't
want to have to create/assign any new classes/IDs or create new structural
code like adding a DIV around the whole thing.
While the icons for the bullets was easy, they ended up not looking good
because the control over size and placement of list-style-image is
non-existant. On IE they were crammed up against the text and placed too
high and on Netscape/Mozilla they were placed fine but the 16x16 icon was
getting cropped to something smaller. And of course, I couldn't access the
parent UL of the LI tags so there was nothing happening there.
Ah well. It's done now. With tables. AND with proper alt-text on the images
which is impossible with the CSS approach.
-Kevin
----- Original Message -----
From: "William H Bowen" <[EMAIL PROTECTED]>
To: "CF-Community" <[EMAIL PROTECTED]>
Sent: Wednesday, January 28, 2004 4:32 PM
Subject: Re: CSS selector problem
> or maybe
>
> ul.video li
>
> ?
>
>
>
> William H Bowen wrote:
>
> > 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]
