How about some lovely CSS3?
li { background: green; }
li:nth-child(odd) { background: red; }
More Related Contents:
- Why does my design elements look different in all browsers? UPDATE [closed]
- Set width on div
- How to Make columns in row [closed]
- How to add images in select list?
- Is it wrong to change a block element to inline with CSS if it contains another block element?
- How to position text over an image with CSS
- Percent pie chart with css only
- :last-child not working as expected?
- Why is my Grid element’s height not being calculated correctly?
- Horizontal list items
- Margin top in inline element
- Input size vs width
- Stretch background image css?
- Bootstrap – align button to the bottom of card
- How to remove “Invisible space” from HTML [duplicate]
- Difference between “visibility:collapse” and “display:none”
- Is it possible to use CSS vars in CSS3 selectors?
- How do I add a highlight behind the text via CSS so it looks like Instagram-one below?
- How to remove indentation from an unordered list item?
- How can I vertically center text in a dynamically height div?
- grid-auto-flow in snake lines?
- It is possible to expand a textarea only with CSS?
- How do I vertically align something inside a span tag?
- Flexbox on IE11: image stretched for no reason?
- CSS animate custom properties/variables
- How to see an HTML page on Github as a normal rendered HTML page to see preview in browser, without downloading?
- Firefox 30 is not hiding select box arrows anymore
- extra space when centering elements using flexbox
- @Media print css
- How to center and crop an image to always appear in square shape with CSS?