Re: Zebra striped list




"dorayme" replied:

(yes I'm back on the job)

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?

Interested in giving a URL so we can get more of a clue what you are
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


.



Relevant Pages

  • any intrested in doing fairly simple 1 page site 4 me.(code)
    ... It MUST use the copyright tag, ... Four frame pages with the contents IN THE ORDER SHOWN as specified ... a text link to a PAGE (an HTML file) somewhere ON campus, ... Make the lists look the same as the lists in Frame 4 ...
    (alt.html)
  • CHIKARA Press Release
    ... For the first time in company history, two masked men put their idenitities on the line, in a bout that will serve as the ... After 104 minutes and change, Chris Hero's assassin, Gran Akuma, emerged victorious. ... The winner of this match will be entered into the Tag World Grand Prix 2006 with a partner of his choosing. ... Mister ZERO vs. Rorschach ...
    (rec.sport.pro-wrestling)
  • Re: Technical Question
    ... first time authors to get advice on writing. ... She lists several, MWA, ...
    (rec.arts.mystery)
  • [SLE] [Fwd: 9.2 is really slow]
    ... The install took the better part of 3 days (normally this ... what is sucking up the cpu time (top lists X as the only process getting ... After sending this the first time, I noticed that 9.2 is trying to probe ... suseplugger might be responsible for this, ...
    (SuSE)
  • Re: Why such volume with W32/Swen@MM?
    ... and this is the first time I've been affected by an M$ email worm. ... debian-* lists and recently posted for the first time. ... they have gotten *zero* copies of this virus. ... Windoze machines from talking to my SMTP server. ...
    (Debian-User)