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

Chapter 5. Layout > Highlighting Table Rows

Highlighting Table Rows

Although CSS is increasingly replacing tables for the basic layout of Web pages, the <table> tag is still the best way to present the content it was originally intended for: tabular data. In fact, tables can greatly benefit from a close association with CSS. Not only can CSS be used for the obvious—defining headers, borders, and row colorsSbut with a bit of DHTML, data tables can be made more useful with rollover effects, so visitors can highlight data along a row.

In this example, we’ll set up a simple table with alternating row colors and a highlight color whenever the visitor rolls over one of the rows.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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