Introduction
Many an article, tutorial and blog post has broached the topic of styling tables with CSS,
This is my own little stab at using the numberous semantic hooks that well-formed tables provide to apply both style and behaviour.
Oh my
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In fermentum ultricies leo. In vitae eros et erat viverra rhoncus. Fusce ut dolor. Praesent est magna, eleifend et, consequat non, accumsan elementum, sem.
Debug
ClearNotes
sdsdas
highlight( elementId, [startHex, endHex, fadePause, fade Duration] )
Limitations
- It's pretty likely this will break with keyword or RGB % based color declarations
- Only works on background colors right now. Would be nice to be able to apply it to foreground or maybe borders
- What if you want to highlight a table row? First off the background is likely to be applied to the
td, neither the row or the cells are likely to have a unique ID, although this could be applied either server or client side depending on context. Secondly if we had to apply multiple simultanious fades to highlight a row, would they sync up?