table border: 1px solid black; : table border « Tags « HTML / CSS






table border: 1px solid black;

     


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
table {
 border-collapse: collapse;
 border: 1px solid black;
}

th {
 border: 1px solid black;
 width: 6em;
}
td {
 width:6em;
 border: 1px solid black;
}

th {
 border: 1px solid black;
 width: 6em;
}
td {
 width:6em;
 border: 1px solid black;
 padding: 0;
 margin: 0;
}

input {
 width: 100%;
 border: none;
 margin: 0;
}

.save {
 margin-top: 1em;
 width: 5em;
}

input {
 width: 100%;
 border: none;
 margin: 0;
 text-align: right;  
}
</style>
</head>

<body>
    <form method="get" name="copresentations">
   <table cellspacing="0">
    <caption>
     Summary of Financial Data
    </caption>
    <tr>
     <th scope="col">Fiscal Year </th>
     <th scope="col">Worksite<br />
      Presentations </th>
     <th scope="col">ing Grades </th>
     <th scope="col">Number of Presentators </th>
    </tr>
    <tr>
     <th scope="row">1999</th>
     <td><input type="text" name="1999" /></td>
     <td><input type="text" name="1999" /></td>
     <td><input type="text" name="1999" /></td>
    </tr>
    <tr>
     <th scope="row">2000</th>
     <td><input type="text" name="2000" /></td>
     <td><input type="text" name="2000" /></td>
     <td><input type="text" name="2000" /></td>
    </tr>
    <tr>
     <th scope="row">2001</th>
     <td><input type="text" name="2001" /></td>
     <td><input type="text" name="2001" /></td>
     <td><input type="text" name="2001" /></td>
    </tr>
    <tr>
     <th scope="row">2002</th>
     <td><input type="text" name="2002" /></td>
     <td><input type="text" name="2002" /></td>
     <td><input type="text" name="2002" /></td>
    </tr>
    <tr>
     <th scope="row">2003</th>
     <td><input type="text" name="2003" /></td>
     <td><input type="text" name="2003" /></td>
     <td><input type="text" name="2003" /></td>
    </tr>
    <tr>
     <th scope="row">2004</th>
     <td><input type="text" name="2004" /></td>
     <td><input type="text" name="2004" /></td>
     <td><input type="text" name="2004" /></td>
    </tr>
   </table>
   <input type="submit" class="save" value="Save" />
  </form>
</body>

</html>

   
    
    
    
    
  








Related examples in the same category

1.Set table border
2.Collapsed Borders
3.table border-width: medium;
4.table border-color: navy;
5.table border groove
6.border-collapse: separate
7.border-collapse: collapse
8.using border-spacing to create space between cells in a table
9.Using the differing precedences of row, column and cell borders to style a table
10.border-spacing: 0.5em
11.Set table right and bottom border to solid
12.Add border spacing
13.Add border spacing for only top and bottom
14.Add border space to column
15.Separated Borders
16.Boxed Cells
17.Left table border
18.Right table border
19.Top table border
20.Bottom table border
21.'border' sets the thickness in pixels of the border around an element
22.'bordercolor' specifies the color of the element border
23.'bordercolordark' defines the darker shade of the border color
24.'bordercolorlight' Example
25.'frame' determines how to display a table's border frame
26.'rules' controls which portions of a table's borders are displayed
27.Set table border to collapse, 1px solid black
28.table border-style: solid;
29.table border-color: #999999;
30.table border: 1px solid #C5B798;
31.Using a table to display border styles
32.table border: thin solid black;table-layout: auto;
33.table {border-collapse:separate;}
34.table border-spacing:2px 8px;
35.Using CSS for Table Borders
36.table border: 1px solid #d8d8d8;
37.table border: 1px solid mediumslateblue;
38.table border-collapse: collapse;
39.table border: 1px solid rgb(200, 200, 200);
40.table border-spacing: 15px;
41.table border-spacing: 0 15px;
42.table border-spacing: 15px 0;
43.Table border and cell border