WebSite X5Help Center

 
Andy T.
Andy T.
User

How to draw a table with borders in HTML  en

Auteur : Andy T.
Visité 2603, Followers 1, Partagé 0  
Mots-clés :: border,html,table

How to draw a table with borders in HTML
Example below the borders don't show. Can you help

<table border="1">
    <tr>
        <td>Tomato</td> <td>
        <td>apple</td><td>
        <td>Orange</td><td>
    </tr>
    <tr>
        <td>Monday</td><td>
        <td>Tuesday</td><td>
        <td>Wednesday</td><td>
    </tr>

</table>

Thank you Andy

Posté le
4 RéPONSES - 1 CORRECT
Incomedia
Samantha M.
Incomedia

Hi Andy!

I'm sorry but we can not help you with your personal HTML codes... maybe another user can suggest something?

Lire plus
Posté le de Samantha M.
Andy T.
Andy T.
User
Auteur

Can anyone out there help me, or is it just not possible to do something so simple with this program???

All I want is to put a border on a table in html.

<table border="1">
    <tr>
        <td>Tomato</td>
        <td>apple</td>
        <td>Orange</td>
    </tr>
    <tr>
        <td>Monday</td>
        <td>Tuesday</td>
        <td>Wednesday</td>
    </tr>

</table>

Thank You Andy

Lire plus
Posté le de Andy T.
Incomedia
Samantha M.
Incomedia

Hi Andy,

Let me help: please add the following code in the HTML and widget object

<table>
    <tr>
        <td>Tomato</td>
        <td>apple</td>
        <td>Orange</td>
    </tr>
    <tr>
        <td>Monday</td>
        <td>Tuesday</td>
        <td>Wednesday</td>
    </tr>

</table>

Then place the following in the Expert section- css code: table, tr, td{border: 1px solid black;}

You will then have to adjust it according to your needs.

May I ask why you don't use the table object?

Lire plus
Posté le de Samantha M.
Andy T.
Andy T.
User
Auteur

Thank you for your answer that works fine. The reason I don’t use table object, is that it is data from a database that I want in the table.

Thanks

AndySmile

Lire plus
Posté le de Andy T.