Skip to content

Commit 9b5c157

Browse files
authored
docs(grid): Fix CSS selector in KB
1 parent ebbd695 commit 9b5c157

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

knowledge-base/grid-conditional-cell-background.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,18 @@ You can use a particular column's [cell template]({%slug grid-templates-column%}
5858
````CSHTML
5959
<style>
6060
/* remove the default cell padding to remove traces of the original background */
61-
.k-grid-table td {
61+
.k-grid-table .k-table-td {
6262
padding: 0;
6363
/*height: 40px;*/ /*you may want to set height to the cells so the height:100% to the child div works better*/
6464
}
6565
66-
.k-grid-table td .cell-padding {
66+
.k-grid-table .k-table-td .cell-padding {
6767
height: 100%;
6868
padding: 5px; /* apply the desired cell padding here */
6969
}
7070
7171
/* the custom background - in this example, on every third element*/
72-
.k-grid-table td .special-background {
72+
.k-grid-table .k-table-td .special-background {
7373
background: yellow;
7474
}
7575
</style>

0 commit comments

Comments
 (0)