Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Multiple Table Styles on same page in WordPress Reply To: Multiple Table Styles on same page in WordPress

#241697
Atelierbram
Participant

I meant in the HTML, set a class-name on the different tables, like doing <table class="table table-purple"> and <table class="table table-yellow"> and so on.
After that target them in CSS. Like:

.table-yellow tr:nth-child(odd) {
  background-color: yellow;
}

Have you access to this, or are you using some kind of plugin with javascript? If you don’t have access to the templates, then go with my last answer.