RE: Creating a table

by "Lars Huttar" <lars_huttar(at)sil.org>

 Date:  Thu, 8 May 2003 16:28:57 -0500
 To:  "'Octavian Rasnita'" <orasnita(at)home.ro>,
<hwg-techniques(at)mail.hwg.org>
 In-Reply-To:  microsoft
  todo: View Thread, Original
You may want something like this:

<html>
   <head>
      <style type="text/css">
        table { border-collapse: collapse;
          border: solid black 1px;
        }
        th { border-bottom: solid black 1px; }
      </style>
   </head>
   <body>
    <table rules="none">
          <tr><th>a</th><th>b</th><th>c</th></tr>
          <tr><td>3</td><td>4</td><td>5</td></tr>
          <tr><td>5</td><td>12</td><td>13</td></tr>
    </table>
   </body>
</html>

If you want borders around each of the cells in the first row,
change the th rule to:
        th { border: solid black 1px; }

Lars

> -----Original Message-----
> From: owner-hwg-techniques(at)hwg.org
> [mailto:owner-hwg-techniques(at)hwg.org]On Behalf Of Octavian Rasnita
> Sent: Thursday, May 08, 2003 3:04 PM
> To: hwg-techniques(at)mail.hwg.org
> Subject: Creating a table
> 
> 
> Hi all,
> 
> Please tell me the CSS code for creating a table that has 
> borders around the
> table and around the first row.
> I don't want to have borders inside the table.
> I've tried a lot of combinations, but I don't know the right 
> CSS code to
> work with tables.
> 
> Thank you.
> 
> Teddy,
> Teddy's Center: http://teddy.fcc.ro/
> Email: orasnita(at)home.ro
> 
> 

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.