th border-bottom-width: 1px; : th border « Tags « HTML / CSS

HTML / CSS » Tags » th border 
th border-bottom-width: 1px;
    
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Spotlight  | A Free CSS Template by RamblingSoul</title>
<style type='text/css'>
table {
  width: 95%;
  background:red;
  border: 1px solid #C5B798;
  margin-top: 15px;
  margin-bottom: 25px;
}
td {
  border-bottom: 1px solid #CDC1A7;
  padding: 5px;
}
th {
  font-family: "Trebuchet MS", Arial, Verdana;
  font-size: 14px;
  padding: 5px;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: #CDC1A7;
  background-color: #CDC1A7;
  color: #993300;
}
</style>


</head>
<body>
<table cellspacing="0" cellpadding="3">
  <tr>
    <th scope="col">Lorem Ipsum</th>
    <th scope="col">Dolor Sit</th>
    <th scope="col">Lorem</th>

    <th scope="col">Ipsum </th>
    <th scope="col">Dolor</th>
  </tr>
  <tr class="alttr1">
    <th scope="row">ABCD</th>
    <td>Noman's Land</td>
    <td>1989</td>

    <td>1200</td>
    <td>200%</td>
  </tr>
  <tr class="alttr2">
    <th scope="row">XYZ</th>
    <td>Nobody Home</td>
    <td>1941</td>

    <td>120</td>
    <td>50%</td>
  </tr>
<tr class="alttr1">
    <th scope="row">ABCD</th>
    <td>Noman's Land</td>
    <td>1989</td>

    <td>1200</td>
    <td>200%</td>
  </tr>
  <tr class="alttr2">
    <th scope="row">XYZ</th>
    <td>Nobody Home</td>
    <td>1941</td>

    <td>120</td>
    <td>50%</td>
  </tr>
<tr class="alttr1">
    <th scope="row">ABCD</th>
    <td>Noman's Land</td>
    <td>1989</td>

    <td>1200</td>
    <td>200%</td>
  </tr>
  <tr class="alttr2">
    <th scope="row">XYZ</th>
    <td>Nobody Home</td>
    <td>1941</td>

    <td>120</td>
    <td>50%</td>
  </tr>
</table>

</body>
</html>

   
    
    
    
  
Related examples in the same category
1.Set table header border to be 1px solid black, its width to 6em
2.Set table border for table header
3.Table header with border
4.th border-left: 1px solid #f4f4f4;
5.th border-bottom: solid 2px #fff;
6.th border-left: 1px solid #EDC9C9;
7.th border-bottom: 1px solid #FFF;
8.th border-left: 1px solid #fff;
9.th border: 1px solid black;
10.th border-bottom-style: solid;
11.th border-bottom-color: #CDC1A7;
12.th, tfoot td border: thin solid black;text-align: center;font-weight: bold;
13.thead th {border-bottom: 1px solid #333; text-align: center; font-weight: bold;}
14.th[scope="col"] {border-bottom: 1px solid gray;}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.