User:Quantum7/Alternating

Current Row-level coloring

Manually entering row colors for each row breaks sorting & makes it hard to insert/delete/reorder elements. For instance, sorting the following table breaks the coloring.

class="sortable wikitable" border="0" align="center" style="border: 1px solid #999; background-color:#FFFFFF"
align="left" bgcolor="#CCCCCC"

! NAME

! Description

ClassTypeFlexibleLinkAuthorYear
MAMMOTH

| MAtching Molecular Models Obtained from Theory

PairNo[http://ub.cbm.uam.es/mammoth/ server] [http://predictioncenter.org/local/mammoth.txt download]CEM Strauss & AR Ortiz2002
-bgcolor="#EFEFEF"

| CE/CE-MC

| Combinatorial Extension -- Monte Carlo

MultiNo[http://cl.sdsc.edu/ server]I. Shindyalov2000
DaliLite

| Distance Matrix Alignment

C-MapPairNo[http://ekhidna.biocenter.helsinki.fi/dali_server/start server]L. Holm1993
-bgcolor="#EFEFEF"

| TM-align

| TM-score based protein structure alignment

Pairnil[http://zhanglab.ccmb.med.umich.edu/TM-align server and download]Y. Zhang & J. Skolnick2005

CSS solution

Adding the following code to common.css will make the following table color properly in all sorting instances:

table.alternating tr:nth-child(even) {

background:#EFEFEF;

}

class="sortable wikitable alternating" border="0" align="center" style="border: 1px solid #999; background-color:#FFFFFF"
align="left"

! NAME

! Description

ClassTypeFlexibleLinkAuthorYear
MAMMOTH

| MAtching Molecular Models Obtained from Theory

PairNo[http://ub.cbm.uam.es/mammoth/ server] [http://predictioncenter.org/local/mammoth.txt download]CEM Strauss & AR Ortiz2002
CE/CE-MC

| Combinatorial Extension -- Monte Carlo

MultiNo[http://cl.sdsc.edu/ server]I. Shindyalov2000
DaliLite

| Distance Matrix Alignment

C-MapPairNo[http://ekhidna.biocenter.helsinki.fi/dali_server/start server]L. Holm1993
TM-align

| TM-score based protein structure alignment

Pairnil[http://zhanglab.ccmb.med.umich.edu/TM-align server and download]Y. Zhang & J. Skolnick2005

Discussion