An Improved Approach to Building Zebra Tables (Page 1 of 4 )
Over the years, zebra tables have become one of the preferred elements of many web designers, especially when it comes to displaying tabular data in a clear and professional fashion. This trend seems to be growing steadily over time. However, the most exciting aspect of these fancy tables is that they can be built using different approaches, including both client and server-side scripting.
However, when a zebra table is constructed manually by utilizing a few CSS styles to alternate the background colors of its respective odd and even rows, not only can this process be quite annoying, but it may lead to errors in the tableís (X)HTML markup, especially if the table in question is comprised of numerous rows.
Having introduced the primary objective of this group of articles, let me review a couple of topics that were covered in the preceding tutorial. As youíll surely recall, in the last installment I explained how to automate the styling process for the even and odd rows of a selected table in order to provide it with the so-called ďzebraĒ appearance.