CSS is not a strong suit for me so I'm not sure how to change the code from here. I have multiple grids on a page and I would like to style them differently. I have read
https://ej2.syncfusion.com/vue/documentation/grid/style-and-appearance/
but when I change a style it affects all of my grids. How can I use the grid id to only change that one?
Also is it possible to center the text on the header but left align in the cell?
Thanks for your help
|
#grid1.e-grid tbody {
background-color: lightyellow;
}
#grid1.e-grid .e-gridheader th {
background-color: lightblue;
}
#grid2.e-grid tbody {
background-color: lightcyan;
}
#grid2.e-grid .e-gridheader th {
background-color: lightpink;
}
|
Thank you very much-- I was having trouble with a grid that was on an injected page. The only other area is
Is it possible to center the text on the header but left align in the cell?
I've tried
text-align: center; in the css but that does not seem to work
Thank
|
<e-column field="OrderID"
headerText="ID"
width="180"
isPrimaryKey="true"
headerTextAlign="center"></e-column>
|