[asp.net/CSS] Override generated tables' style attributes?
If you slap a DataGrid on an asp.net page and leave the settings as default, it generates the table code with along with the following attributes:
cellspacing=0 border=1 rules="all" style="border-collapse:collapse;"
...and that sucks because hard coded HTML overrides any CSS you may have for that particular element. Any style I apply to it regarding border and border-spacing is just flat out ignored.
My questions are:
1. Is there a way to prevent asp.net from tossing whatever garbage it wants into the table tags? I just want a pure clean tag with the corresponding id/class: <table id="myDataGrid" class="MainReport">
If not...
2. Is there a way to make sure that CSS overrides all?
__________________
I love lamp.
|