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

[Solved] Css problem with table and grid

1 Answer 109 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 12 Jun 2009, 02:02 PM
Hi,
I have a small problem with some styles.
I have this example code:
<style> 
   .edittable tr td {background-color:#ffffff;} 
</style> 
 
<table class="edittable"
   <tr> 
      <td> 
          <telerik:RadGrid Skin="Default" ... ></telerik:RadGrid> 
      </td> 
   </tr> 
</table> 

The problem is that I had the table from beginning with the css-class and now I added the grid into it and the grid inherits the styles from the tables css class so it doesn't look like the Default skin anymore.
Can I make some easy change so the table has its own styles and the grid looks like Default skin?
I have tried but I cant figure it out how to fix it without to much changes!
 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 12 Jun 2009, 02:32 PM
Hi Mattias,

Depending on your other CSS styles, the solution may be easy or not that easy.

Try one of these, instead of your current custom CSS rule:

.edittable>tr>td {background-color:#fff;}

or

.edittable tr {background-color:#fff;}


Note that the first one will not work in IE6 due to browser limitations. The second one should do the job with regard to RadGrid, however it is possible that some other custom styles of yours will start behaving unexpectedly.


Kind regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Mattias
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or