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 3 of 3
  1. #1
    Senior Coder BarrMan's Avatar
    Join Date
    Feb 2005
    Location
    Israel.
    Posts
    1,644
    Thanks
    69
    Thanked 83 Times in 82 Posts

    how can I do a table with the border only on the outside?

    I would like to do somthing like this:

    |-------------------------------------------------------------|
    | title title2 title3 title4 |
    |-------------------------------------------------------------|

    without the inside borders.

  • #2
    Regular Coder
    Join Date
    Jul 2004
    Location
    mile high city
    Posts
    482
    Thanks
    0
    Thanked 0 Times in 0 Posts
    With CSS you can specify that a border should apply only to the table and style the cells differently if need be. Versus setting the border attribute of the table itself where you have fewer options.

    Code:
    <style type="text/css">
      table { border:solid 1px #666; }
    </style>
    
    ...
    
    
    <table border="0">
      <tr>
        <td>
        </td>
      </tr>
    </table>
    Computer, kill Flanders... Did I hear my name? My ears are burning...
    Good start. Now finish the job.

  • #3
    Senior Coder BarrMan's Avatar
    Join Date
    Feb 2005
    Location
    Israel.
    Posts
    1,644
    Thanks
    69
    Thanked 83 Times in 82 Posts
    Ok, Thanks.

    I can also do a table inside a table.


  •  

    Posting Permissions

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