Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Tables?

  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Location
    Calgary, AB
    Posts
    179
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Tables?

    How do you put a border on to a table, but only have it go around the table, not around every word?


    In other words, outline the table.

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    table {
    border: 1px solid black;
    }

    Inside <style> tags.

  • #3
    Regular Coder
    Join Date
    Sep 2002
    Location
    Calgary, AB
    Posts
    179
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can I see an example please?

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Posts
    623
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <html>
    <head>
    <title></title>
    <style type="text/css">
    table {
    border: 1px solid black;
    }
    </style>
    </head>
    <body>
    <table>
    <tr>
    <td>
    content
    </td>
    </tr>
    </table>
    </body>
    </html>

    Try playing with the examples on this site:

    http://www.w3schools.com/css/css_border.asp


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •