This is a migrated thread and some comments may be shown as answers.

No borders in grid, but on Input

1 Answer 1461 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 2
Ian asked on 17 Jul 2013, 08:21 PM
Using this custom CSS I am able to remove all the borders on a gird. Works great.

/* Grids can't have borders */
.k-grid, .k-grid *   { border: 0 !important; }


the problem is that it removed borders from all the elements in the grid. How can I edit the CSS so that only the Gird has all the borders and lines removed, but all the child controls still have their borders?

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 18 Jul 2013, 10:29 AM
Hi Ian,

The universal selector "*" must be replaced with explicit listing of the elements that you want to have no borders. For example


.k-grid,
.k-grid-header-wrap,
.k-grid-header th,
.k-grid-content > table > tbody > tr > td
{
       /*...    */
}


Generally, the universal selector should be used carefully and sparingly.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Ian
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Share this question
or