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

Chapter 3. Rapid Rows, Cruising Columns:... > Table Formatting with Class

Table Formatting with Class

I advocate using CSS whenever possible for formatting, and that includes styling tables. You could use the Format Table command to get alternating row colors the way you’d like, but that adds so much more markup than if you were to just use CSS for styling. Trouble is, the Format Table command doesn’t offer CSS as an option, and selecting every other row in Design view can be a tedious chore, prone to errors. Find and Replace to the rescue! First, make sure that you’ve removed any erroneous markup that will be defined in your CSS, then select the table you’d like to format in either Code or Design view. Then select Edit > Find and Replace and fill in the dialog accordingly:

Find in: Selected Text


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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