HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Tip; zebra stripes for your tables

Login / Search

 [ Join | More ]
 Add topic 
Posted
Item has a rating of 5 (Liked by Chris GrahamLiked by JeanLiked by Guest)  
Rating:
#106013 (In Topic #20683)
Avatar

Fan in action

Coloring every other table row background

tbody tr:nth-child(odd) {
  background: #eee;
}

Makes every other row, (odd), the color of #eee. To change the other 50% of the rows use (even) in the same fashion.

Placed in catalogues.css

Our site will have lots of data going into catalogs displayed as tables and this helps with readability.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: