Arindam Das
Arindam Das

Reputation: 699

HTML table border not coming in asp.net?

i have a table like this :

<table width="100%" bgcolor="Wheat" style="border:Solid 1 Black">
                                                <tr>
                                                    <th>
                                                        VendorCode
                                                    </th>
                                                    <th>
                                                        VendorName
                                                    </th>
                                                    <th>
                                                        Password
                                                    </th>
                                                    <th>
                                                        Email
                                                    </th>
                                                    <th>
                                                        Phone
                                                    </th>
                                                </tr>

                                            </table>

the problem is i am not getting the table border... i am using updatepanel and ajax toolkit also ... can any one tell me whats the problem??

Upvotes: 2

Views: 4770

Answers (3)

Arindam Das
Arindam Das

Reputation: 699

thanks for all ur help guys but those are not working for some reason but this work for me:

<table width="100%" bgcolor="Wheat" style="border-style:solid; border-width:thin; border-color: Black">
                                                <tr>
                                                    <th style="border-style:solid; border-width:thin; border-color: Black">
                                                        VendorCode
                                                    </th>
                                                    <th style="border-style:solid; border-width:thin; border-color: Black">
                                                        VendorName
                                                    </th>
                                                    <th style="border-style:solid; border-width:thin; border-color: Black">
                                                        Password
                                                    </th>
                                                    <th style="border-style:solid; border-width:thin; border-color: Black">
                                                        Email
                                                    </th>
                                                    <th style="border-style:solid; border-width:thin; border-color: Black">
                                                        Phone
                                                    </th>
                                                </tr>

                                            </table>

Upvotes: 1

Murali Murugesan
Murali Murugesan

Reputation: 22619

Try with proper CSS border style syntax.

<table width="100%" bgcolor="Wheat" style="border:1px solid Black">

Upvotes: 0

Barney
Barney

Reputation: 16456

You need to specify the unit of the width portion of the border declaration, which I presum is px (as opposed to em for example). The style declaration should be:

border: Solid 1px Black

Upvotes: 2

Related Questions