TD css class ...how to remove this attributes?
Hello Telerik,
I'm using your default .css and in my application I need to remove the following value for TD
Padding-Top:10px <- need to be removed
Padding-Bottom:14px <- need to be removed
Vertical-Align:Top<- need to be removed
How do I edit the default css?
Thanks
Paolo
Hi Paolo,
If you use custom theme the default styles will be removed. If you use the default theme and want to override some of the rules you can try with !important rule:
/* Here is better to point which is the table (ex.table.documents tr td), because this will affect the page editor*/
table tr td
Padding-Top:
0px
!important
;
Padding-Bottom:
0px
!important
;
Vertical-Align:
middle
!important
;
hello Jordan,
I used jQuery to add that class and worked perfecly, thanks!
Paolo
Hello Paolo,
I am really glad to hear that you solved the problem. In case of using jQuery may be it will be faster if you just remove the class attribute instead of adding three new css properties. This is just a suggestion.
$(document).ready(
function
()
.$(
'.table-selector'
).attr(
'class'
,
''
);
)