On Dec 14, 2009, at 10:42 AM, jkronika wrote:

> in the case of
> creating a purely CSS zebra-table solution, there isn't a perfect
> solution regardless of what browser or technologies one is willing to
> use. For instance:
> * using hard-coded classes adds overhead in terms of file size and
> maintenance
> * using dynamically generated classes adds overhead on the server and
> in terms of file size
> * adding classes via JavaScript adds overhead on the client (user's
> computer) and will not work if JavaScript is disabled or unavailable
> 
> These different issues must be balanced depending upon the particular
> use case. 

I agree with all of these sentiments. For cases where progressive-enhancement 
via Javascript is an option, I created SuperSelectors 
(http://github.com/chrispatterson/jquery-super-selectors) - it's a jQuery 
plugin which will bring modern selector support to any legacy browser supported 
by jQuery.

Works for zebra-striping, :last-child / :first-child - even :hover support for 
arbitrary elements.

Patches / suggestions are totally welcome.

Chris

-- 
--
You received this because you are subscribed to the "Design the Web with CSS" 
at Google groups.
To post: css-design@googlegroups.com
To unsubscribe: css-design-unsubscr...@googlegroups.com

Reply via email to