Use class instead of CssClass in this case.
Table border issue
Peter_1985
2,711
Reputation points
Hi,
What is wrong below? How to correct it?
3 answers
Sort by: Most helpful
-
-
AgaveJoe 29,776 Reputation points
2025-01-21T11:24:57.7966667+00:00 Many thanks. How to ensure Labels and Textboxes are all having the proper borders?
What is a "proper border"?
-
MohaNed Ghawar 75 Reputation points
2025-02-06T15:03:29.0466667+00:00 there's a syntax error in the table's class attribute. The problem is with
ssclass="Rightborders"
- it has an extra 's' and incorrect syntax.Here's how to correct it:
<div class="centered"> <table class="Rightborders"> <tr> <td> <asp:Label ID="lb_name" Text="Name" Width="230px" /> </td> </tr> </table> </div>
If you want to apply right borders to your table, make sure you also have the corresponding CSS class defined in your stylesheet:
.Rightborders { border-right: 1px solid #000; /* or whatever border style you prefer */ }