table line-height: 1.3em; : table « Tags « HTML / CSS






table line-height: 1.3em;

     

<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style rel="stylesheet" type="text/css">

table {
  border: 1px solid #d8d8d8;
  border-collapse: collapse;
  line-height: 1.3em;
  width: 95%;
  margin: 0 0 16px;
  padding: 0;
}

caption {
  font-size: 1.5em;
  font-weight: 400;
  margin: 0;
  padding: 6px 0 8px;
  text-align: left;
}

th {
  background: url(img/menubg2.gif) repeat-x bottom left #eaeaea;
  color: #505050;
  padding: 7px;
  text-align: left;
}

td {
  background: url(img/menubg.gif) repeat-x bottom left #f4f4f4;
  color: #303030;
  font-size: 0.9em;
  padding: 7px;
  text-align: left;
}


</style>

</head>
<body>
  <div id="footer">
    <table><caption>caption</caption><tr><td>this is a test</td></tr></table>
    
  </div>

</body>
</html>

   
    
    
    
    
  








Related examples in the same category

1.'table' Example
2.Nested tables
3.How tables linearize
4.A basic table
5.'col' Example
6.'summary' specifies a brief description of a table
7.basic table
8.Basic table with tr, td
9.A simple XHTML table
10.table tag opens a table
11.Table inline style
12.Calendar table
13.Fixed table first column
14.Make table font bold
15.table font-family: arial, verdana, sans-serif;
16.Table style
17.table color: white;
18.Table layout
19.Table styling
20.Table with shading colors
21.HTML markup for a simple table (continued)
22.providing table alignment and spacing
23.A table with spanned rows and columns
24.Img in a table cell
25.Table with summary
26.Using th for table heading
27.Dividing a table into head, body and footer.
28.A Basic Table with Caption
29.Using the table header attribute
30.table padding: 0;
31.table color: #fff;
32.table table-layout: fixed;
33.table caption-side: bottom;
34.HTML markup for a simple table
35.Vertical alignment in table cells
36.Styling table columns
37.A Basic Table 2
38.Adding Text Alignmnet for table
39.Stripe the table
40.Nested css table
41.Structural Table
42.CSS Table Rowspan Demo
43.Spreadsheet data
44.Fixed Table
45.Shrinkwrapped Table
46.All table content is enclosed within the tbody
47.Style for table body
48.Horizontal Stretched Table
49.Using the th element for table headings
50.Table heads, bodies and footers
51.An Accessible Table
52.Selecting cells in body
53.Selecting all tables and cells
54.Selecting all cells
55.'align' specifies the horizontal alignment of the 'table' and 'iframe'