Sunday, 15 August 2010

c# - css on tables within tables -



c# - css on tables within tables -

i generate gridview and, in 2 of cells of each, there 2 other gridviews. renders table , each row has table in 2 of cells.

i set cssclass of each gridview but, no matter do, tables in calls seem inherit @ to the lowest degree of css attributes applied containing table.

is there foolproof way of saying 'ignore attributes of table surrounds table'.

you utilize more specific css selectors... e.g.:

<table class="outertable"> <tbody> <tr> <td>this white text</td> <td> <table class="innertable"> <tbody> <tr> <td>this black text</td> </tr> </tbody> </table> </td> </tr> </tbody> </table .outertable > tbody > tr > td { color: #fff; } .innertable > tbody > tr > td { color: #000; }

c# .net css

No comments:

Post a Comment