Zebra striping

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
File:Zebra-striping.png
Zebra striping used in Nautilus.

Zebra striping is the coloring of every other row of a table to improve readability.[1] Especially in wide tables with numerous columns, it can be difficult for a reader following a row to be confident that their gaze has not strayed to an adjacent row without some means of distinguishing rows at a glance. Although zebra striping has been used for a long time to improve readability, there is relatively little data on how much it helps.[2][3]

Implementation

[edit | edit source]

In HTML documents, zebra striping can be implemented using the Cascading Style Sheets :nth-child(even) pseudo-selector.[4][5]

The Bootstrap CSS framework features zebra striping through the .table-striped class.[6]

See also

[edit | edit source]
  • Green bar paper, continuous sheets pre-printed with green rows, once-common stationery used when physically printing tabular data

References

[edit | edit source]
  1. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  3. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  4. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  5. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  6. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).