Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
User talk:Notjusttired/common.css
(section)
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Namespaces
User page
Discussion
More
More
Page actions
Read
Edit source
New topic
History
User contributions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Stripey table code == :If this CSS could be added it would be helpful - it greatly improves readability - it's copied from elsewhere (probably WikiMedia's Commons) and introduces new classes to give different alternate row colors on tables that have the extra class added. I've requested this previously. <pre>/* ALTERNANCE */ /** Classes allowing alternating line colors * in tables according to the number of header lines: *.alternance if odd number *.alternance2 if even number. * *.odd is to be kind to IE<9 which does not implement * the selector :nth-child, applied via Common.js (?) * *.sortable: sortable tables require reversing * the alternance. */ .alternance, .alternance2 { border-collapse: collapse; } table.alternance > * > tr > th, table.alternance2 > * > tr > th { background: #e6e6e6; } .alternance tr, .alternance th[scope="row"] { background: #fcfcfc; } .alternance:not(.sortable) tr:nth-child(odd), .alternance.sortable tr:nth-child(even), .alternance:not(.sortable) tr:nth-child(odd) th[scope="row"], .alternance.sortable tr:nth-child(even) th[scope="row"] { background: #eeeeee; } .alternance .odd, .alternance .odd th[scope="row"] { /* be kind to IE<9 */ background: #eeeeee; } .alternance2 tr, .alternance2 th[scope="row"] { background: #eeeeee; } .alternance2 tr:nth-child(odd), .alternance2 tr:nth-child(odd) th[scope="row"] { background: #fcfcfc; } .alternance2 .odd, .alternance2 .odd th[scope="row"] { /* be kind to IE<9 */ background: #fcfcfc; } </pre> :Example use here: [[Common_symptoms_in_ME/CFS]] - this might need extra adding when a dark skin is added (just to the dark skin). [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 09:08, 14 April 2019 (EDT) ===Re: Stripey table code -- ~~~~=== : Replace this text with your reply
Summary:
Please make sure your edits are consistent with
MEpedia's guidelines
.
By saving changes, you agree to the
Terms of use
, and you irrevocably agree to release your contribution under the
CC BY-SA 3.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Skip to content
Main page
Browse
Become an editor
Random page
Popular pages
Abbreviations
Glossary
About MEpedia
Links for editors
Contents
Guidelines
Recent changes
Pages in need
Search
Help
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
Logs
View user groups
More
What links here
Related changes
Page information
Page logs