Zebra Background Colors

Permalink Browser Info Environment
I would like to add styling to support a zebra like background, though not every other row. Basically something like this:http://tlcrehab.org/index.php/facilities/tlc-galveston/about-the-st... - So I can color code based off sections. Would be great if there was a way under options to specify alternating colors/rows and then in rows to pick an alternating color to over-ride the typical zebra style I suspect most would like.

Anyhow - suggestions on how to accomplish this as is, or an improvement to the plugin?

Type: Ticket
Status: Archived
plschneide
View Replies:
shahroq replied on at Permalink Reply
shahroq
Hi,
Please upgrade to latest version (1.1.0) which has striped table feature built-in.
Options > Design > Table Class > striped
Also you can copy the responsible style for stripe or hover effect from
\packages\whale_responsive_tables\css\themes\default\responsive-tables.css
to
Options > Design > Styles
and change the color.
plschneide replied on at Permalink Reply
plschneide
Hi,

Thanks this helps, but for this table I don't want a traditional Zebra of every other row. I need to make - say 2 consecutive rows white, then 3 consecutive rows, the darker color, then say 1 row the white, then 4 consecutive rows the dark color.

Is there a way to override the background color (if normal) for specific rows - as my needs don't follow the every other pattern.
shahroq replied on at Permalink Reply
shahroq
Hi,
You can insert any css rules into:
Design > Table Styles, Header Cell Styles, Body Cell Styles,...
plschneide replied on at Permalink Reply
plschneide
Thanks, yes I see that and perhaps I'm just need to upskill my CSS skills, but is there a way to specify which rows get which colors via the CSS sheet for that table? Based on your answer I am suspecting there is a way to program that. (When I built the table previously I just specified the style (a or b) at the individual row level so I had the control I speak of....
shahroq replied on at Permalink Reply
shahroq
Sure you can, you can copy the provided code for striped or hover effect at the end of responsible-table.css file and replace 'odd' with a number:
.table-striped > tbody > tr:nth-of-type(3) {
  background-color: red!important;
}
.table-striped>tbody>tr:nth-child(3)>td, .table-striped>tbody>tr:nth-child(3)>th {
    background-color: red!important;
}
plschneide replied on at Permalink Reply
plschneide
Thanks - sorry for the delay in getting back - I've been traveling - I can see how this works for a pattern, but my table data doesn't follow a set pattern.

I've got one row - needs to be white
2nd and 3rd row - colored
4th, 5th,6th row white
7th row colored

etc. There is no set pattern for the groupings of items - Really need to be able to set the zebra on or off at each individual row (or color for each row) - ideas?
plschneide replied on at Permalink Reply
plschneide
Okay I tried one other idea... in the areas where there are rows "grouped" together I just put a BR tag after each line. So they actually remain part of the same row. Kind of messy, but seems to work - though the row widths in editing make it a bit of a pain (could be wider). Would this seem to be the best solution for the problem - or other ideas?
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.1.0
Version Installed - 8.1.0
Database Version - 20170123000000

# concrete5 Packages
Achillea (0.9.6), EZ Paypal (1.1.1), HonestWebsites Simple testimonials (1.0.0), Image Link With Content (1.1), Stack Infinity (1.2.3), Whale Responsive Tables (1.0.3)

# concrete5 Overrides
languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/es_PE/LC_MESSAGES/messages.mo, languages/es_PE/LC_MESSAGES, languages/es_PE, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/es_PE/LC_MESSAGES/messages.mo, languages/es_PE/LC_MESSAGES, languages/es_PE

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.23 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4

# Server API
cgi-fcgi

# PHP Version
5.5.38

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, hash, iconv, imap, json, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, Reflection, session, SimpleXML, sockets, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 120M
sql.safe_mode - Off
upload_max_filesize - 115M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.