Closed Bug 441663 Opened 12 years ago Closed 12 years ago

use :nth-child for even table row background in Help files

Categories

(SeaMonkey :: Help Documentation, defect, trivial)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED
seamonkey2.0a1

People

(Reporter: stefanh, Assigned: stefanh)

References

Details

Attachments

(1 file, 1 obsolete file)

Since bug 75375 is fixed for 1.9.1, we can use the :nth-child pseudo-class to get the "striped" table rows in Help once we pull mozilla-central.
Attached patch This should work (obsolete) — Splinter Review
I haven't tested this, but it should work (needs a 1.9.1 tree).
Comment on attachment 330369 [details] [diff] [review]
This should work

Just tried it on my hg build and it seems to work fine ;)
Attachment #330369 - Flags: review?(iann_bugzilla)
This might be a better idea
Attachment #330369 - Attachment is obsolete: true
Attachment #330786 - Flags: review?(iann_bugzilla)
Attachment #330369 - Flags: review?(iann_bugzilla)
Actually, when thinking of it - a better name for the class is "tbody-default". I'll change the class name when I land the patch if IanN agrees with the change.
Status: NEW → ASSIGNED
Comment on attachment 330786 [details] [diff] [review]
New version, using .tbody-striped

Looks fine to me, r=me with whichever class name you decide of the two.
Attachment #330786 - Flags: review?(iann_bugzilla) → review+
Landed with the class name "tbody-default":

http://hg.mozilla.org/index.cgi/comm-central/rev/fe01bd29503e
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.0alpha
You need to log in before you can comment on or make changes to this bug.