Join James Williamson for an in-depth discussion in this video Alternating table row colors, part of HTML: Building Tables.
It's found in the 02_05 directory.…Just underneath the caption selector,…I'm gonna create a brand new selector…so make sure you're staying outside…of the closing curly brace for caption,…and above the td selector.…I'm gonna type in tr for table row and then a colon,…so I'm gonna do a pseudo class selector afterwards.…No space there, so tr:…and then I'm gonna do what's known as an nth-child selector.…So nth-child which basically allows us…to count and apply styles to a specific pattern.…
- Adding content to tables
- Defining table headers
- Styling borders
- Alternating table row colors
- Grouping table content
- Defining columns and headers
- Making table data accessible
Skill Level Beginner
Creating a Responsive Presentation in HTML5with Justin Putney1h 24m Intermediate
Creating a Responsive HTML Emailwith Chris Converse1h 43m Beginner
1. Table Basics
2. Styling Tables
3. Adding Meaning
Additional resources3m 47s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.