on 07-14-2016 12:28 AM
Good day:
I'm trying to do a zebra like format in the columns of a crosstab (as shown in the image), I've been investigating about this, but I only found how to do a zebra lines.
I even tried to search with Internet Explorer some class that affects the columns of the data cells, but I didn't find anything.
I don't know if there is some way to archieve this with CSS or if there is any way to set a background color for an entire column having the column ID.
Thanks so much in advance to all of you for any help that could give me because I've been investigating a lot about it and I don't find anything.
Greetings
Hi Andoni,
Please use the below CSS, i hope it will be helpful.
.sapzencrosstab-ColumnHeaderArea .sapzencrosstab-HeaderRow .sapzencrosstab-HeaderCellDefault {
background-color:#00f !important;
}
.sapzencrosstab-DataArea .sapzencrosstab-DataCellDefault:nth-child(odd){
background-color:#777 !important;
}
.sapzencrosstab-DataArea .sapzencrosstab-DataCellDefault:nth-child(even) {
background-color:#aaa !important;
}
Thanks,
Ganesh
Message was edited by: Ganesh Babu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andoni,
.sapzencrosstab-DataCellDefault, .sapzencrosstab-RowHeaderArea .sapzencrosstab-HeaderCellDefault {
background-color: blue !important;
}
.sapzencrosstab-DataCellDefault {
background-color: black !important;
}
.sapzencrosstab-RowHeaderArea .sapzencrosstab-HeaderCellAlternating {
background: white !important;
}
.sapzencrosstab-DataCellAlternating {
background: white !important;
}
This will do the work. If you want to affect only the specif crosstab make sure that you append the id of the crosstab before.
Thanks,
Nithyanandam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andoni,
.sapzencrosstab-DimensionHeaderArea .sapzencrosstab-HeaderCellFirstInCol, .sapzencrosstab-ColumnHeaderArea .sapzencrosstab-HeaderCellFirstInCol:nth-child(odd){
background-color: black !important;
}
.sapzencrosstab-DimensionHeaderArea .sapzencrosstab-HeaderCellFirstInCol, .sapzencrosstab-ColumnHeaderArea .sapzencrosstab-HeaderCellFirstInCol:nth-child(even){
background-color: blue !important;
}
something like this
Thanks,
Nithyanandam
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.