Refine your search:

1
1

Is there a simple way of "zebra striping" results rows in SimpleResultsTable, e.g. change background of all even-numbered lines to light gray?

asked 22 Nov '10, 13:04

IgorB's gravatar image

IgorB
2498
accept rate: 25%


One Answer:

It is possible to do this in CSS, but only if you're using a CSS3 capable browser. In the application.css file, add something like:

table.simpleResultsTable tr:nth-child(even) { background-color: #ddd; }
table.simpleResultsTable tr:nth-child(odd) { background-color: #fff; } 
link

answered 22 Nov '10, 15:39

ziegfried's gravatar image

ziegfried ♦
7.2k1315
accept rate: 53%

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×161

Asked: 22 Nov '10, 13:04

Seen: 398 times

Last updated: 22 Nov '10, 15:39

Copyright © 2005-2012 Splunk, Inc. All rights reserved.