Page 1 of 1

Create rows when it has more than one value on Crosstab

Posted: Thu Jul 21, 2022 9:36 am
by ach8

I use cross tabs. How to create rows when it has more than one value?

Product | Year 2018 | Year 2019 | Year ... |
Product | Stock | Sell | Stock | Sell | Stock | Sell |


Re: Create rows when it has more than one value on Crosstab

Posted: Thu Jul 21, 2022 1:09 pm
by arbei

You may right click the values in Chrome and select Inspect to check the HTML and CSS, and add your own CSS under HTML -> Styles -> User tab to change how to display them.


Re: Create rows when it has more than one value on Crosstab

Posted: Mon Aug 01, 2022 8:55 am
by ach8

I have tried right click and the result is like this..

<td class="ew-table-row" style="min-width: 200px;text-align: right;">
   <ul class="list-unstyled ew-crosstab-values">
         <li><span>23</span></li>
         <li><span>23</span></li>
   </ul>
</td>

What kind of css should I add?


Re: Create rows when it has more than one value on Crosstab

Posted: Mon Aug 01, 2022 10:55 am
by arbei

viewtopic.php?t=53794

Try to find out which CSS styles controls what you want and change it.


Re: Create rows when it has more than one value on Crosstab

Posted: Thu Aug 04, 2022 11:28 pm
by ach8

I have used this css code. But how to make the header row match.

<style>ul.ew-crosstab-values{ -moz-column-count: 2; -moz-column-gap: 20px; -webkit-column-count: 2; -webkit-column-gap: 20px; column-count: 2; column-gap: 20px; } .list-unstyled ul.ew-crosstab-values li { border:1px solid; }</style>