2011-05-25 21:52:48 +00:00
|
|
|
* {
|
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
|
2016-01-18 04:04:12 +00:00
|
|
|
button:nth-child(even) {
|
2011-05-25 21:52:48 +00:00
|
|
|
background-color: yellow;
|
|
|
|
}
|
|
|
|
|
2016-01-18 04:04:12 +00:00
|
|
|
button:nth-child(odd) {
|
2011-05-25 21:52:48 +00:00
|
|
|
background-color: red;
|
|
|
|
}
|
|
|
|
|
2016-01-18 04:04:12 +00:00
|
|
|
button:nth-child(first) {
|
2011-05-25 21:52:48 +00:00
|
|
|
background-color: purple;
|
|
|
|
}
|
|
|
|
|
2016-01-18 04:04:12 +00:00
|
|
|
button:nth-child(last):nth-child(even) {
|
2012-11-13 20:41:08 +00:00
|
|
|
background-color: lime;
|
2011-05-25 21:52:48 +00:00
|
|
|
}
|
|
|
|
|
2016-01-18 04:04:12 +00:00
|
|
|
button:nth-child(last):nth-child(odd) {
|
2011-05-25 21:52:48 +00:00
|
|
|
background-color: purple;
|
|
|
|
}
|
|
|
|
|
2016-01-18 04:04:12 +00:00
|
|
|
button:nth-child(last):nth-child(first) {
|
2011-05-25 21:52:48 +00:00
|
|
|
background-color: blue;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* for reference */
|
|
|
|
|
|
|
|
#red {
|
|
|
|
background-color: red;
|
|
|
|
}
|
|
|
|
|
2012-11-13 20:41:08 +00:00
|
|
|
#lime {
|
|
|
|
background-color: lime;
|
2011-05-25 21:52:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#purple {
|
|
|
|
background-color: purple;
|
|
|
|
}
|
|
|
|
|
|
|
|
#yellow {
|
|
|
|
background-color: yellow;
|
|
|
|
}
|
|
|
|
|
|
|
|
#blue {
|
|
|
|
background-color: blue;
|
|
|
|
}
|