• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 14. Styling a Data Table > Creating Selectors to Style a Table

Creating Selectors to Style a Table

To style this table and its content, you will use eight selectors as shown in Listing 14.8.

Listing 14.8. CSS Code Showing the Selectors for Styling the Table

caption {...}
table {...}
th, td {...}
tr {...}
thead th {...}
tbody th {...}
tr.alternate {...}
tr.alternate th ... }


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint