Horje
how to alternate background colour in html div elements in css Code Example
how to alternate background colour in html div elements in css
/* to color odd children in parent-container with children of type div */
#parent-container > div:nth-child(odd) {
 background-color:red;
}

/* to color even children in parent-container with children of type div */
#parent-container > div:nth-child(even) {
 background-color:red;
}




Css

Related
bring element to front css Code Example bring element to front css Code Example
css box shadow right and down Code Example css box shadow right and down Code Example
css click event jquery Code Example css click event jquery Code Example
css url do not change color of visited links Code Example css url do not change color of visited links Code Example
Disable highlighting text in CSS. Code Example Disable highlighting text in CSS. Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10