Table border issue

Peter_1985 2,711 Reputation points
2025-01-21T03:55:30.69+00:00

Hi,

What is wrong below? How to correct it?

圖片

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,592 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Viorel 119.7K Reputation points
    2025-01-21T06:07:16.0566667+00:00

    Use class instead of CssClass in this case.


  2. 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"?


  3. 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 */
    }
    
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.