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

Tables and CSS

In Chapter 4, “Advanced HTML Optimization,” you learned how to speed up tables with the CSS2 table-layout:fixed; property and colgroup and col elements. Another technique you can use for tiny tables is to use CSS to style table cell background colors instead of embedding bgcolors everywhere. So instead of this:

<table bgcolor="#ffcc00"> 
<tr bgcolor="somecolor">
<td>...</td>
<td bgcolor"anothercolor">...</td>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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