Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

How about some color?

You know Tony loves his signature color and there’s no reason not to add some color to his table; not only will it look great, but we can actually improve the readability of the table by adding some color. Just like for any other element, all you need to do is set the background-color property on a table cell to change its color (notice how everything you’ve learned about XHTML and CSS is starting to come together!). Here’s how you do that:

th {                          
    background-color: #cc6600;

}                             

Add this new rule to your “journal.css” file and reload. Here’s what you’ll see:

image with no caption

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint