Beauregard T. Shagnasty said:
..and even late-model dot-matrix printers...
For color bars, use CSS to style every other row.
<style type="text/css">
tr.odd { background-color: #ccffcc; }
tr.even { background-color: transparent; }
</style>
<table>
<tr class='odd'><td>blah</td><td>blah</td></tr>
<tr class='even'><td>blah</td><td>blah</td></tr>
...
Or leave out "class='even'" if you don't want to explicitly style the
white bars (the body background should be styled as white). As far as
the holes go, find a graphic of a hole and include an extra <td> on
each end of every row and put the graphic in it.
Yes, indeed to all. But, just to mention, in case the styling is not
so crucial, and especially if there is a lot of updating (which would
involve careful classing not to bugger the order of the colours up),
there is javascipt - *much easier*!
<script src="table_row_stripe.js" type="text/javascript"
charset="utf-8"> </script>
in the head and nothing else, table_row_stripe.js being:
//From
http://davious.org/onepagers/anewstripe.html, which was adapted
from
http://www.alistapart.com/articles/zebratables/
onload = function() { stripe ('spreadsheet') };
function stripe(id) {
var table = document.getElementById(id);
if (! table) { return; }
var trs = table.getElementsByTagName("tr");
for (var i = 0; i < trs.length; i += 2) {
trs
.className += "even";
}
}
and in the CSS at least something like:
#spreadsheet tr.even td {background: #cfc; color: #000;}
#spreadsheet th {background: #cfc; color: #000;}
You might even be able to modify to include the 'oles?
Talking of holes, this might suggest background images to those of us
in semantic mood. Either on the table, the cells or perhaps boldest of
all, the whole lot, stripes and all, the body. There would be line-up
problems but perhaps this is not so crucial...