Join James Williamson for an in-depth discussion in this video Adding background colors, part of HTML: Building Tables.
Tables and table cells used to have the…"bg" color attribute that allowed you…to set background colors.…Now, this attribute is still supported,…but it's a lot more efficient to just…set background colors through CSS.…So, we're going to do that using the…"tables.htm" file and the "styles.css" file…from the 02_04 directory.…Now, when we're doing this,…we're going to go ahead and apply…some background colors to tables…and individual table cells.…It's really useful if you…understand the stacking order,…sort of that three dimensional…stacking order of table elements,…because if you apply a…background color to one element,…and there's another element…that would paint on top of it,…you'll sort of lose that color, if you will.…
So, the very bottom element within a table…is the parent table tag.…Let me show you what I mean.…So, I'm going to go to "styles.css",…I'm going to scroll down to find my table selector…and I'm going to give it a background color.…So, the way to do that is…right after the last property,…in this case, margin top,…
- 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.