Table header style : table header « Table Style « HTML / CSS

HTML / CSS
1. Background Attributes
2. Basic Attributes
3. Basic Tags
4. Box Model
5. CSS Attributes and Javascript Style Properties
6. CSS Controls
7. Form Attributes
8. Form Style
9. Form Tags
10. Frame Attributes
11. Frame Tags
12. HTML
13. IE Firefox
14. Images
15. Layout
16. Layout Attributes
17. Link Attributes
18. Link Tags
19. List Attributes
20. List Style
21. List Tags
22. Marquee Attributes
23. Meta Tags
24. Microsoft Attributes
25. Object Attributes
26. Object Tags
27. Reference
28. Style Basics
29. Styles Tags
30. Table Attributes
31. Table Style
32. Table Tags
33. Text
34. Text Attributes
35. Text Tags
36. XML
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
HTML / CSS » Table Style » table header 
Table header style
 

<!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">
th {
 text-align: left;
 padding: 1em 1.5em 0.1em 0.5em;
 color: white;
 background-color: blue;
 border-right: 2px solid blue;
}

.secondrow th {
 background-color: #009;
}
</style>
</head>

<body>
  <table>
    <tr>
   <th colspan="4">
   Table 1. General Characteristics
   </th>
  </tr>
  <tr class="secondrow">
   <th>Item
   </th>
   <th>
    Estimate
   </th>
   <th>
    Lower&nbsp;Bound
   </th>
   <th>
    Upper&nbsp;Bound
   </th>
  </tr>
  <tr>
    <td>Total population</td>

    <td>272,091</td>

    <td>****</td>

    <td>****</td>
  </tr>

  <tr>
    <td colspan="4">Sex</td>
  </tr>

  <tr>
    <td>Male</td>

    <td>129,179</td>

    <td>127,670</td>

    <td>131,908</td>
  </tr>

  <tr>
    <td>Female</td>

    <td>142,302</td>

    <td>140,183</td>

    <td>144,421</td>
  </tr>
  </table>

</body>

</html>

 
Related examples in the same category
1. table header tag
2. thead is the first section of a table. It formats the table header area.
3. Basic table with th tag
4. Style for table header
5. Nested table header
6. th color: navy
7. th background-color: gold;
8. Table header format
9. Set table header border to be 1px solid black, its width to 6em
10. Table header column span
11. Table header font, background and padding
12. Set table border for table header
13. Add padding for table header and table cell
14. Add background for table header
15. Add background image for table header
16. Add different background images for each table column header
17. Table header and cell overflow hidden
18. Two level of table header
19. Background for table header row
20. table header background-color: #cccccc;
21. table header height: 50px;
22. table header font-weight: bold;
23. table header text-align: left;
24. Three row header
25. Grouped table header
26. Table header with border
27. Selecting cells in head
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.