WebSite X5Help Center

 
Andy T.
Andy T.
User

How to draw a table with borders in HTML  en

Autor: Andy T.
Besucht 2668, Followers 1, Geteilt 0  
Tags:: 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

Gepostet am
4 ANTWORTEN - 1 KORREKT
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?

Mehr lesen
Gepostet am von Samantha M.
Andy T.
Andy T.
User
Autor

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

Mehr lesen
Gepostet am von 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?

Mehr lesen
Gepostet am von Samantha M.
Andy T.
Andy T.
User
Autor

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

Mehr lesen
Gepostet am von Andy T.