Re: Zebra striped list
- From: "dE|_" <spambusters@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 13 May 2009 13:56:46 +0100
"dorayme" replied:
(yes I'm back on the job)Interested in giving a URL so we can get more of a clue what you are
This isn't the first time I've made a list with zebra striped lists. I've
previously set a class for each BGcolor and classed the tags one by one.
Anyone know a way to do this without classing each LI tag, maybe with
pseudo
classes?
talking about?
For a start, btw, you would only need to class half the LIs, the other
can be taken care of simply by
li {...}
The CSS for the classed ones would overide.
Or if you have other lists and this one is special
<ul class="special">
<li>..
<li class="stripe">...
<li>..
<li class="stripe">...
and
.special li {will cover them all)
except for the ones that are overridden by
.stripe {background:...}
I thought someone would bring that up, I don't like that method because of
the messy sawtooth HTML you get. If I've got to manually class every other
tag I'd rather class them all. Thanks for your input though.
Here's the URL of first draft, feel free to throw stones, I'm asking
'Providor' to do the same.
http://www.websitefoundry.co.uk/providorgasdemo/index.html
Something like this.
Javascript solutions are often quite good for this sort of thing.
Javascript to set auto classes? That's a bit controversial in here isn't it?
--
======= dE|_ =======
www.websitefoundry.co.uk
www.crackguitar.com
Fender~Photoshop~Markup
.
- Follow-Ups:
- Re: Zebra striped list
- From: dorayme
- Re: Zebra striped list
- From: dorayme
- Re: Zebra striped list
- References:
- Zebra striped list
- From: dE|_
- Re: Zebra striped list
- From: dorayme
- Zebra striped list
- Prev by Date: Re: Zebra striped list
- Next by Date: Re: Zebra striped list
- Previous by thread: Re: Zebra striped list
- Next by thread: Re: Zebra striped list
- Index(es):
Relevant Pages
|