table-striped-{rowspan} #38499
Unanswered
e-mccormick
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have some tables where the information is stacked. For example, a name and some data over an address. With this, there are two rows per entry. This makes table-striped a bit awkward, especially if it is more than two rows per entry, thought that is rare.
I have simulated striping rows with a bit of code along the lines of:
<tr<?php if($i%2==1) echo ' class="table-secondary"';?>>
However, the table-secondary is different from the table-striped color. If I use them on the same page in different tables this becomes more evident.
It would be nice if there was a way to tell table-striped how many rows to consecutively do in one color. Then, row blocks could be striped the same way, you could emulate old 3 and 3 striping, etc. The exact command could be in the form of:
table-striped-{rowspan}
or
table-striped span-{rowspan}
Or something similar, where {rowspan} would be the number of rows before changing colors.
Another solution would be access to the table-striped colors via the table color sets. Then, my manual striping could be made to match the rest of the page.
Beta Was this translation helpful? Give feedback.
All reactions