Alternate Table Row Colours
I had a rethink and came up with the following set of classes to easily handle alternate row colours in tables and elsewhere. The index file will explain everything clearly. You essentially create your own sub-classes that extend the base class, and then call the method.
You can easily add more than two colours. It will then cycle through them all and reset. You may also manually reset for if you need the same alternate row colour template more than once on the same page load.
Four classes for rotating background colours in HTML tables/lists? Crazy. Oh and can you not keep zipping up the code snippets (or at least provide an online-viewable version) since downloading just to scan some code seems an awful waste of time and clicks.
(Sorry for being a negative nancy! :-P)
Yes, I was taking into consideration any modifications that people may wish to make. Such as setting alternate font colours, alternate borders, etcetera.
|All times are GMT. The time now is 03:13 PM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0