CSS : Html Tags th border
Set table header border to be 1px solid black, its width to 6em
<html> <head> <title></title> <style type="text/css"> th { border: 1px solid black; width: 6em; } </style> </head> <body> <form method="get" name="copresentations"> <table cellspacing="0"> <caption> Summary of Financial Data </caption> <tr> <th scope="col">F</th> <th scope="col">W</th> <th scope="col">P</th> <th scope="col">N</th> </tr> <tr> <th scope="row">2003</th> <td><input type="text" name="w2003" /></td> <td><input type="text" name="p2003" /></td> <td><input type="text" name="n2003" /></td> </tr> <tr> <th scope="row">2004</th> <td><input type="text" name="w2004" /></td> <td><input type="text" name="p2004" /></td> <td><input type="text" name="n2004" /></td> </tr> </table> <input type="submit" class="save" value="Save" /> </form> </body> </html>
th[scope="col"] {border-bottom: 1px solid gray;}
<html> <head> <title>Website Graph</title> <style type="text/css" media="screen"> body {margin: 2em 5%;} table {border-collapse: collapse; border-spacing: 0;} th, td {padding: 0.25em 0.75em;} th[scope="col"] {border-bottom: 1px solid gray;} th[scope="row"] {border-right: 1px solid gray;} </style> </head> <body> <table> <caption>Web traffic</caption> <thead> <tr> <th scope="col">Month</th> <th scope="col" class="hits">Pageviews</th> <th scope="col" class="views">Visitors</th> </tr> </thead> <tbody> <tr> <th scope="row">January 2010</th> <td>1,367,234</td> <td>326,578</td> </tr> <tr> <th scope="row">February 2010</th> <td>1,491,262</td> <td>349,091</td> </tr> </tbody> </table> </body> </html>
thead th {border-bottom: 1px solid #333; text-align: center; font-weight: bold;}
<html> <head> <title></title> <style type="text/css" media="all"> body {margin: 2em 5%;} table {border-collapse: collapse; border-spacing: 0;} th, td {padding: 0.25em 0.75em;} thead th {border-bottom: 1px solid #333; text-align: center; font-weight: bold;} tfoot th, tfoot td {border-top: 2px solid #666; color: #363;} </style> </head> <body> <table> <thead> <tr> <th></th> <th scope="col">Q1</th> <th scope="col">Q2</th> <th scope="col">Q3</th> <th scope="col">Q4</th> </tr> </thead> <tbody> <tr> <th>#207-B34</th> <td>$11,940</td> <td>$12,348</td> <td>$14,301</td> <td>$17,208</td> </tr> <tr> <th>#207-B35</th> <td>$9,345</td> <td>$9,834</td> <td>$10,035</td> <td>$9,672</td> </tr> <tr> <th>#207-B36</th> <td>$2,787</td> <td>$3,123</td> <td>$4,137</td> <td>$3,711</td> </tr> <tr> <th>#208-A07</th> <td>$1,657</td> <td>$3,003</td> <td>$2,882</td> <td>$2,690</td> </tr> <tr> <th>#208-A11</th> <td>$8,947</td> <td>$7,249</td> <td>$8,102</td> <td>$7,821</td> </tr> <tr> <th>#208-A12</th> <td>$9,034</td> <td>$11,027</td> <td>$11,793</td> <td>$10,283</td> </tr> <tr> <th>#208-A13</th> <td>$10,633</td> <td>$12,574</td> <td>$12,834</td> <td>$11,568</td> </tr> <tr> <th>#208-A23</th> <td>$15,856</td> <td>$16,239</td> <td>$16,057</td> <td>$15,712</td> </tr> <tr> <th>#209-C17</th> <td>$8,245</td> <td>$6,929</td> <td>$6,498</td> <td>$5,016</td> </tr> <tr> <th>#209-C55</th> <td>$4,896</td> <td>$4,869</td> <td>$4,383</td> <td>$6,808</td> </tr> </tbody> <tfoot> <tr> <th>Total</th> <td>$83,340</td> <td>$87,195</td> <td>$91,022</td> <td>$90,489</td> </tr> </tfoot> </table> </body> </html>
th, tfoot td border: thin solid black;text-align: center;font-weight: bold;
<html>
<head>
<title> My favorite records </title>
<style>
table {
width: 100%;
border: thin solid black;
empty-cells: hide;
}
td:empty {
background: gray;
}
th, tfoot td {
border: thin solid black;
text-align: center;
font-weight: bold;
}
tbody td {
font-size: 120%;
}
caption {
font-size: 90%;
text-align: right;
}
td, th, caption {
padding: 5px;
}
</style>
</head>
<body>
<table>
<caption>
Table: My favorite records.
</caption>
<colgroup>
<col id='album' />
<col id='artist' />
<col id='released' />
</colgroup>
<thead>
<tr>
<th> album </th>
<th> artist </th>
<th> released </th>
</tr>
</thead>
<tbody>
<tr>
<td> This is a test. </td>
<td> This is a test. </td>
<td> 1965 </td>
</tr>
<tr>
<td> This is a test. </td>
<td> This is a test. </td>
<td> 1967 </td>
</tr>
<tr>
<td> Queen II </td>
<td> Queen </td>
<td> 1974 </td>
</tr>
<tr>
<td> Sone </td>
<td> Music </td>
<td> 1995 </td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
<tfoot>
<tr>
<td> album </td>
<td> artist </td>
<td> released </td>
</tr>
</tfoot>
</table>
</body>
</html>
th border-bottom-color: #CDC1A7;
<html> <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>
th border-bottom-style: solid;
<html> <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>
th border-bottom-width: 1px;
<html> <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>
th border: 1px solid black;
<html> <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>
th border-left: 1px solid #fff;
<html> <head> <meta name="Description" content="Information architecture, Web Design, Web Standards." /> <meta name="Keywords" content="your, keywords" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="Distribution" content="Global" /> <meta name="Author" content="Erwin Aligam - ealigam@gmail.com" /> <meta name="Robots" content="index,follow" /> <style type='text/css'> * { padding: 0; margin: 0; } body { margin: 0; padding: 0; font: normal .70em/1.7em Verdana, 'Trebuchet MS', Tahoma, sans-serif; color: #555; text-align: center; background: #180700; } /* links */ a { color:#CB4721; background-color: inherit; text-decoration: none; } a:hover { background-color: inherit; text-decoration: underline; } /* headers */ h1, h2, h3 { font: normal 1em Georgia, "Times New Roman", Times, serif; color:#111; letter-spacing:-1px; } h1 { font-size: 3em; } h2 { font-size: 2.5em; color:#74743D; } h3 { font-size: 2em; color:#C34E23; letter-spacing: 0px;} p, h1, h2, h3 { margin: 10px 15px; padding: 0; } ul, ol { margin: 10px 30px; padding: 0 15px; } /* images */ img { border: 1px solid #DADADA; padding: 8px; } img.no-border { border: none; } img.float-right { margin: 5px 0px 5px 15px; } img.float-left { margin: 5px 15px 5px 0px; } code { margin: 5px 0; padding: 10px; text-align: left; display: block; overflow: auto; font: 500 1em/1.5em 'Lucida Console', 'courier new', monospace; /* white-space: pre; */ background: #FCFCF9; border: 1px solid #EFEFEF; } acronym { cursor: help; border-bottom: 1px solid #777; } blockquote { margin: 15px; padding: 0 0 0 30px; font: bold 1.3em/1.5em 'Trebuchet MS', Sans-serif; background: #FCFCF9; border: 1px solid #EFEFEF; color: #6C6E3A; } /* start - table */ table { border-collapse: collapse; margin: 15px; } th strong { color: #FFF; } th { background: #882D2D; height: 29px; padding-left: 12px; padding-right: 12px; color: #FFF; text-align: left; border-left: 1px solid #EDC9C9; border-bottom: 1px solid #FFF; } tr { height: 30px; background: #F3F3F3; } td { padding-left: 11px; padding-right: 11px; border-left: 1px solid #fff; border-bottom: 1px solid #fff; } /* end - table */ /* form elements */ form { margin: 15px; padding: 15px 5px; border: 1px solid #EFEFEF; background: #F8F8F8; } label { display:block; font-weight:bold; margin:5px 0; } input { padding: 2px; border: 1px solid #EFEFEF; font: normal 1em Verdana, 'Trebuchet MS', Tahoma, sans-serif; color: #666666; } textarea { width: 280px; padding:2px; border: 1px solid #EFEFEF; font: normal 1em Verdana, 'Trebuchet MS', Tahoma, sans-serif; height:100px; display:block; color: #666666; } input.button { margin: 0; font: bold 1em Arial, Sans-serif; border: 1px solid #EFEFEF; padding: 2px 3px; background: #F1F0E4; } /* search form */ .searchform { background-color: transparent; border: none; margin: 0; padding: 5px 0 15px 0; width: 190px; } .searchform p { margin: 0; padding: 0; } .searchform input.textbox { width: 120px; color: #333; height: 18px; padding: 2px; vertical-align: top; } .searchform input.button { font: bold 12px Arial, Sans-serif; color: #333; width: 60px; height: 26px; border: none; padding: 3px 5px; vertical-align: top; } /*********************** LAYOUT ************************/ #header-content, #footer-content, #content { width: 810px; } #header-wrap, #footer-wrap, #content-wrap { min-width: 810px; } /* header */ #header-wrap { height: 160px; text-align: left; background: #FFF url(EliteCircle-images/headerbg.jpg) repeat-x 0 0; } #header-content { position: relative; margin: 0 auto; padding: 0; } #header-content #logo { position: absolute; font: normal 40px/65px Georgia, "Times New Roman", Times, serif; letter-spacing: -1px; color: #FFF; background: #3F1204 url(EliteCircle-images/logobg.jpg) repeat-x left top; border: 1px solid #4E460F; height: 65px; padding: 0 10px; margin: 0; /* change the values of left and top to adjust the position of the logo */ top: 18px; left: 0px; } #header-content #logo a { text-decoration: none; color: #FFF; background: transparent; } #header-content #slogan { position: absolute; font: normal 12px 'Trebuchet MS', Tahoma, sans-serif; letter-spacing: 0px; color: #BBB; margin: 0; padding: 0; /* change the values of left and top to adjust the position of the slogan */ top: 88px; left: 30px; } /* header menu */ #header-content ul { position: absolute; right: 0px; top: 125px; font: bold 12px Georgia, "Times New Roman", Times, serif; list-style: none; margin: 0; padding: 0; text-transform: uppercase; } #header-content li { display: inline; } #header-content li a { float: left; display: block; padding: 0px 18px 7px 18px; color: #F3A251; text-decoration: none; } #header-content li a:hover { color: #F88F26; } #header-content li a#current { color: #FFF; } #header-content #header-links { position: absolute; top: 5px; right:10px; color: #8E5F2F; font-size: 90%; } #header-content #header-links P { margin: 0; padding: 0; } #header-content #header-links a { color: #A4A4A4; text-decoration: none; } #header-content #header-links a:hover { color: #F3A251; } /* content */ #content-wrap { clear: both; background: #FFF url(EliteCircle-images/contentbg.jpg) repeat-y center top; float: left; width: 100%; } #content { text-align: left; margin: 30px auto; padding: 0; } /* sidebar */ #sidebar { float: left; width: 190px; margin: 0 0 10px 0; padding: 5px 0 0 0; } #sidebar h1 { font: normal 1.8em Georgia, "Times New Roman", Times, serif; color: #6C6E3A; padding: 0; margin: 15px 0 10px 5px; letter-spacing:-1px; } #sidebar ul.sidemenu { margin: 5px 0 15px 0; padding: 0; border-top: 1px dashed #E1E1E1; } #sidebar ul.sidemenu li { list-style: none; border-bottom: 1px dashed #E1E1E1; } #sidebar ul.sidemenu a { display: block; color: #666666; text-decoration: none; padding: .3em 0 .3em 10px; width: 94%; } #sidebar ul.sidemenu a:hover { padding: .3em 0 .3em 10px; color: #CB4721; background: #FFF; } /* main */ #main { margin: 0 20px 10px 0; padding: 0; width: 590px; float: left; } #main h1 { font: normal 3em Georgia, "Times New Roman", Times, serif; color: #111; padding: 0 0 5px 0; margin: 15px 15px 20px 15px; letter-spacing:-1px; background: url(EliteCircle-images/bk_dotted.gif) repeat-x left bottom; } #main h1 a { color: #111; text-decoration: none; } #main p, #main h1, #main h2, #main h3, #main blockquote, #main form, #main table { margin-left: 0; } #main form p { margin: 15px; } /* footer */ #footer-wrap { position: relative; clear: both; padding: 2.5em 0; font: normal .95em 'Trebuchet MS', Tahoma, sans-serif; text-align: left; background: url(EliteCircle-images/footerbg.jpg) repeat-x 0 0; color: #CCC; width: 100%; float: left; } #footer-wrap p { margin-left: 0; } #footer-wrap h2 { font: bold 1.6em 'Trebuchet MS', Tahoma, sans-serif; text-transform: uppercase; letter-spacing: 0px; color: #CC9933; margin-left: 5px; } #footer-content { margin: 0 auto; } #footer-content a { color: #C8935D; } #footer-content a:hover { color: #FFF; text-decoration: none; } #footer-content ul { list-style: none; margin: 0; padding: 0; width: 98%; } #footer-content ul.columns li { border-bottom: 1px dashed #272727; } #footer-content ul.columns li.top { border-top: 1px dashed #272727; } #footer-content ul.columns li a { display: block; font-weight: normal; padding: 5px; width: 98%; color: #BDBDBD; } #footer-content ul.columns li a:hover { background: #202020; color: #FFF; text-decoration: none; } #footer-content .col { width: 260px; padding: 0 0 30px 0; } #footer-content .space-sep { margin-right: 20px; } #footer-content .col2 { width: 245px; padding: 0 0 30px 0; display: inline; } /* alignment classes */ .float-left { float: left; } .float-right { float: right; } .align-left { text-align: left; } .align-right { text-align: right; } /* additional classes */ .clear { clear: both; } .orange { color: #F3A251; } .post-footer { font-size: 95%; border: 1px solid #EFEFEF; background: #F8F8F8; padding: 8px 10px; margin: 30px 15px 10px 15px; } .post-footer .date { background: url('EliteCircle-images/clock.gif') no-repeat left center; padding-left: 20px; margin: 0 10px 0 5px; } .post-footer .comments { background: url('EliteCircle-images/comment.gif') no-repeat left center; padding-left: 20px; margin: 0 10px 0 5px; } .post-footer .readmore { background: url('EliteCircle-images/page.gif') no-repeat left center; padding-left: 20px; margin: 0 10px 0 5px; } </style> <title>EliteCircle</title> </head> <body> <!-- header starts here --> <div id="header-wrap"><div id="header-content"> <h1 id="logo"><a href="index.html" title="">Elite<span class="orange">Circle</span></a></h1> <h2 id="slogan">Put your site slogan here...</h2> <div id="header-links"> <p> <a href="index.html">Home</a> | <a href="index.html">Contact</a> | <a href="index.html">Site Map</a> </p> </div> <!-- Menu Tabs --> <ul> <li><a href="index.html" id="current">Home</a></li> <li><a href="index.html">News</a></li> <li><a href="index.html">Downloads</a></li> <li><a href="index.html">Support</a></li> <li><a href="index.html">About</a></li> </ul> </div></div> <!-- content-wrap starts here --> <div id="content-wrap"><div id="content"> <div id="main"> <a name="TemplateInfo"></a> <h1>Template Info</h1> <p> <a href="index.html"><img src="images/sample-image.jpg" width="174" height="140" alt="firefox-gray" class="float-left" /></a> <strong>EliteCircle</strong> is a free, W3C-compliant, CSS-based website template by <a href="http://www.styleshout.com/">styleshout.com</a>. This work is distributed under the <a rel="license" href="http://domain.org/licenses/by/2.5/"> Creative Commons Attribution 2.5 License</a>, which means that you are free to use and modify it for any purpose. All I ask is that you give me credit by including a <strong>link back</strong> to <a href="http://www.domain.com/">my website</a>. </p> <p> You can find more of my free template designs at <a href="http://www.domain.com/">my website</a>. For premium commercial designs, you can check out <a href="http://www.domain.com" title="Website Templates">DreamTemplate.com</a>. </p> <p class="post-footer align-right"> <a href="index.html" class="readmore">Read more</a> <a href="index.html" class="comments">Comments (7)</a> <span class="date">Jan 09, 2007</span> </p> <a name="SampleTags"></a> <h1>Sample Tags</h1> <h3>Code</h3> <p><code> code-sample { <br /> font-weight: bold;<br /> font-style: italic;<br /> } </code></p> <h3>Example Lists</h3> <ol> <li>here is an example of </li> <li>an ordered list</li> </ol> <ul> <li>here is an example of </li> <li>an unordered list</li> </ul> <h3>Blockquote</h3> <blockquote><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat....</p></blockquote> <h3>Image and text</h3> <p> <a href="index.html"><img src="images/sample-image.jpg" width="174" height="140" alt="sample image" class="float-left" /></a> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec libero. Suspendisse bibendum. Cras id urna. Morbi tincidunt, orci ac convallis aliquam, lectus turpis varius lorem, eu posuere nunc justo tempus leo. Donec mattis, purus nec placerat bibendum, dui pede condimentum odio, ac blandit ante orci ut diam. Cras fringilla magna. Phasellus suscipit, leo a pharetra condimentum, lorem tellus eleifend magna, eget fringilla velit magna id neque. Curabitur vel urna. In tristique orci porttitor ipsum. Aliquam ornare diam iaculis nibh. Proin luctus, velit pulvinar ullamcorper nonummy, mauris enim eleifend urna, congue egestas elit lectus eu est. </p> <h3>Table Styling</h3> <table> <tr> <th><strong>post</strong> date</th> <th>title</th> <th>description</th> </tr> <tr> <td>06.18.2007</td> <td><a href="index.html">Augue non nibh</a></td> <td><a href="index.html">Lobortis commodo metus vestibulum</a></td> </tr> <tr> <td>06.18.2007</td> <td><a href="index.html">Fusce ut diam bibendum</a></td> <td><a href="index.html">Purus in eget odio in sapien</a></td> </tr> <tr> <td>06.18.2007</td> <td><a href="index.html">Maecenas et ipsum</a></td> <td><a href="index.html">Adipiscing blandit quisque eros</a></td> </tr> <tr> <td>06.18.2007</td> <td><a href="index.html">Sed vestibulum blandit</a></td> <td><a href="index.html">Cras lobortis commodo metus lorem</a></td> </tr> </table> <h3>Example Form</h3> <form action="#"> <p> <label>Name</label> <input name="dname" value="Your Name" type="text" size="35" /> <label>Email</label> <input name="demail" value="Your Email" type="text" size="35" /> <label>Your Comments</label> <textarea rows="5" cols="5"></textarea> <br /> <input class="button" value="Submit" type="submit" /> </p> </form> <br /> </div> <div id="sidebar"> <h1>Search Box</h1> <form action="#" class="searchform"> <p> <input name="search_query" class="textbox" type="text" /> <input name="search" class="button" value="Search" type="submit" /> </p> </form> <h1>Sidebar Menu</h1> <ul class="sidemenu"> <li><a href="index.html">Home</a></li> <li><a href="#TemplateInfo">TemplateInfo</a></li> <li><a href="#SampleTags">Sample Tags</a></li> <li><a href="http://www.styleshout.com/">More Templates</a></li> <li><a href="http://www.dreamtemplate.com" title="Web Templates">Web Templates</a></li> </ul> <h1>Sponsors</h1> <ul class="sidemenu"> <li><a href="http://www.dreamtemplate.com" title="Website Templates">DreamTemplate</a></li> <li><a href="http://www.themelayouts.com" title="WordPress Themes">ThemeLayouts</a></li> <li><a href="http://www.imhosted.com" title="Website Hosting">ImHosted.com</a></li> <li><a href="http://www.dreamstock.com" title="Stock Photos">DreamStock</a></li> <li><a href="http://www.evrsoft.com" title="Website Builder">Evrsoft</a></li> <li><a href="http://www.webhostingwp.com" title="Web Hosting">Web Hosting</a></li> </ul> <h1>Wise Words</h1> <p>"No man becomes rich unless he enriches others."</p> <p class="align-right">- Andrew Carnegie</p> <h1>Support Styleshout</h1> <p>If you are interested in supporting my work and would like to contribute, you are welcome to make a small donation through the <a href="http://www.styleshout.com/">donate link</a> on my website - it will be a great help and will surely be appreciated.</p> </div> <!-- content-wrap ends here --> </div></div> <!-- footer starts here --> <div id="footer-wrap"><div id="footer-content"> <div class="col float-left space-sep"> <h2>Site Partners</h2> <ul class="columns"> <li class="top"><a href="http://www.dreamtemplate.com" title="Website Templates">DreamTemplate</a></li> <li><a href="http://www.themelayouts.com" title="WordPress Themes">ThemeLayouts</a></li> <li><a href="http://www.imhosted.com" title="Website Hosting">ImHosted.com</a></li> <li><a href="http://www.dreamstock.com" title="Stock Photos">DreamStock</a></li> <li><a href="http://www.evrsoft.com" title="Website Builder">Evrsoft</a></li> <li><a href="http://www.webhostingwp.com" title="Web Hosting">Web Hosting</a></li> </ul> </div> <div class="col float-left"> <h2>Links</h2> <ul class="columns"> <li class="top"><a href="index.html">Link One</a></li> <li><a href="index.html">Link Two</a></li> <li><a href="index.html">Link Three</a></li> <li><a href="index.html">Link Four</a></li> <li><a href="index.html">Link Five</a></li> <li><a href="index.html">Link Six</a></li> </ul> </div> <div class="col2 float-right"> <h2>Site Links</h2> <ul class="columns"> <li class="top"><a href="index.html">Home</a></li> <li><a href="index.html">About</a></li> <li><a href="index.html">Sitemap</a></li> <li><a href="index.html">RSS Feed</a></li> </ul> <p> © copyright 2010 <strong>Your Company Name</strong><br /> <a href="http://www.domain.com/" title="Website Templates">website templates</a> by <a href="http://www.styleshout.com/">styleshout</a>|<a href="http://www.ehostinfo.com/">Web Hosting</a> <br /> Valid <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> | <a href="http://validator.w3.org/check/referer">XHTML</a> </p> </div> <br class="clear" /> </div></div> <!-- footer ends here --> </body> </html>
th border-bottom: 1px solid #FFF;
<html> <head> <meta name="Description" content="Information architecture, Web Design, Web Standards." /> <meta name="Keywords" content="your, keywords" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="Distribution" content="Global" /> <meta name="Author" content="Erwin Aligam - domain@gmail.com" />
<meta name="Robots" content="index,follow" /> <style type='text/css'> * { padding: 0; margin: 0; } body { margin: 0; padding: 0; font: normal .70em/1.7em Verdana, 'Trebuchet MS', Tahoma, sans-serif; color: #555; text-align: center; background: #180700; } /* links */ a { color:#CB4721; background-color: inherit; text-decoration: none; } a:hover { background-color: inherit; text-decoration: underline; } /* headers */ h1, h2, h3 { font: normal 1em Georgia, "Times New Roman", Times, serif; color:#111; letter-spacing:-1px; } h1 { font-size: 3em; } h2 { font-size: 2.5em; color:#74743D; } h3 { font-size: 2em; color:#C34E23; letter-spacing: 0px;} p, h1, h2, h3 { margin: 10px 15px; padding: 0; } ul, ol { margin: 10px 30px; padding: 0 15px; } /* images */ img { border: 1px solid #DADADA; padding: 8px; } img.no-border { border: none; } img.float-right { margin: 5px 0px 5px 15px; } img.float-left { margin: 5px 15px 5px 0px; } code { margin: 5px 0; padding: 10px; text-align: left; display: block; overflow: auto; font: 500 1em/1.5em 'Lucida Console', 'courier new', monospace; /* white-space: pre; */ background: #FCFCF9; border: 1px solid #EFEFEF; } acronym { cursor: help; border-bottom: 1px solid #777; } blockquote { margin: 15px; padding: 0 0 0 30px; font: bold 1.3em/1.5em 'Trebuchet MS', Sans-serif; background: #FCFCF9; border: 1px solid #EFEFEF; color: #6C6E3A; } /* start - table */ table { border-collapse: collapse; margin: 15px; } th strong { color: #FFF; } th { background: #882D2D; height: 29px; padding-left: 12px; padding-right: 12px; color: #FFF; text-align: left; border-left: 1px solid #EDC9C9; border-bottom: 1px solid #FFF; } tr { height: 30px; background: #F3F3F3; } td { padding-left: 11px; padding-right: 11px; border-left: 1px solid #fff; border-bottom: 1px solid #fff; } /* end - table */ /* form elements */ form { margin: 15px; padding: 15px 5px; border: 1px solid #EFEFEF; background: #F8F8F8; } label { display:block; font-weight:bold; margin:5px 0; } input { padding: 2px; border: 1px solid #EFEFEF; font: normal 1em Verdana, 'Trebuchet MS', Tahoma, sans-serif; color: #666666; } textarea { width: 280px; padding:2px; border: 1px solid #EFEFEF; font: normal 1em Verdana, 'Trebuchet MS', Tahoma, sans-serif; height:100px; display:block; color: #666666; } input.button { margin: 0; font: bold 1em Arial, Sans-serif; border: 1px solid #EFEFEF; padding: 2px 3px; background: #F1F0E4; } /* search form */ .searchform { background-color: transparent; border: none; margin: 0; padding: 5px 0 15px 0; width: 190px; } .searchform p { margin: 0; padding: 0; } .searchform input.textbox { width: 120px; color: #333; height: 18px; padding: 2px; vertical-align: top; } .searchform input.button { font: bold 12px Arial, Sans-serif; color: #333; width: 60px; height: 26px; border: none; padding: 3px 5px; vertical-align: top; } /*********************** LAYOUT ************************/ #header-content, #footer-content, #content { width: 810px; } #header-wrap, #footer-wrap, #content-wrap { min-width: 810px; } /* header */ #header-wrap { height: 160px; text-align: left; background: #FFF url(EliteCircle-images/headerbg.jpg) repeat-x 0 0; } #header-content { position: relative; margin: 0 auto; padding: 0; } #header-content #logo { position: absolute; font: normal 40px/65px Georgia, "Times New Roman", Times, serif; letter-spacing: -1px; color: #FFF; background: #3F1204 url(EliteCircle-images/logobg.jpg) repeat-x left top; border: 1px solid #4E460F; height: 65px; padding: 0 10px; margin: 0; /* change the values of left and top to adjust the position of the logo */ top: 18px; left: 0px; } #header-content #logo a { text-decoration: none; color: #FFF; background: transparent; } #header-content #slogan { position: absolute; font: normal 12px 'Trebuchet MS', Tahoma, sans-serif; letter-spacing: 0px; color: #BBB; margin: 0; padding: 0; /* change the values of left and top to adjust the position of the slogan */ top: 88px; left: 30px; } /* header menu */ #header-content ul { position: absolute; right: 0px; top: 125px; font: bold 12px Georgia, "Times New Roman", Times, serif; list-style: none; margin: 0; padding: 0; text-transform: uppercase; } #header-content li { display: inline; } #header-content li a { float: left; display: block; padding: 0px 18px 7px 18px; color: #F3A251; text-decoration: none; } #header-content li a:hover { color: #F88F26; } #header-content li a#current { color: #FFF; } #header-content #header-links { position: absolute; top: 5px; right:10px; color: #8E5F2F; font-size: 90%; } #header-content #header-links P { margin: 0; padding: 0; } #header-content #header-links a { color: #A4A4A4; text-decoration: none; } #header-content #header-links a:hover { color: #F3A251; } /* content */ #content-wrap { clear: both; background: #FFF url(EliteCircle-images/contentbg.jpg) repeat-y center top; float: left; width: 100%; } #content { text-align: left; margin: 30px auto; padding: 0; } /* sidebar */ #sidebar { float: left; width: 190px; margin: 0 0 10px 0; padding: 5px 0 0 0; } #sidebar h1 { font: normal 1.8em Georgia, "Times New Roman", Times, serif; color: #6C6E3A; padding: 0; margin: 15px 0 10px 5px; letter-spacing:-1px; } #sidebar ul.sidemenu { margin: 5px 0 15px 0; padding: 0; border-top: 1px dashed #E1E1E1; } #sidebar ul.sidemenu li { list-style: none; border-bottom: 1px dashed #E1E1E1; } #sidebar ul.sidemenu a { display: block; color: #666666; text-decoration: none; padding: .3em 0 .3em 10px; width: 94%; } #sidebar ul.sidemenu a:hover { padding: .3em 0 .3em 10px; color: #CB4721; background: #FFF; } /* main */ #main { margin: 0 20px 10px 0; padding: 0; width: 590px; float: left; } #main h1 { font: normal 3em Georgia, "Times New Roman", Times, serif; color: #111; padding: 0 0 5px 0; margin: 15px 15px 20px 15px; letter-spacing:-1px; background: url(EliteCircle-images/bk_dotted.gif) repeat-x left bottom; } #main h1 a { color: #111; text-decoration: none; } #main p, #main h1, #main h2, #main h3, #main blockquote, #main form, #main table { margin-left: 0; } #main form p { margin: 15px; } /* footer */ #footer-wrap { position: relative; clear: both; padding: 2.5em 0; font: normal .95em 'Trebuchet MS', Tahoma, sans-serif; text-align: left; background: url(EliteCircle-images/footerbg.jpg) repeat-x 0 0; color: #CCC; width: 100%; float: left; } #footer-wrap p { margin-left: 0; } #footer-wrap h2 { font: bold 1.6em 'Trebuchet MS', Tahoma, sans-serif; text-transform: uppercase; letter-spacing: 0px; color: #CC9933; margin-left: 5px; } #footer-content { margin: 0 auto; } #footer-content a { color: #C8935D; } #footer-content a:hover { color: #FFF; text-decoration: none; } #footer-content ul { list-style: none; margin: 0; padding: 0; width: 98%; } #footer-content ul.columns li { border-bottom: 1px dashed #272727; } #footer-content ul.columns li.top { border-top: 1px dashed #272727; } #footer-content ul.columns li a { display: block; font-weight: normal; padding: 5px; width: 98%; color: #BDBDBD; } #footer-content ul.columns li a:hover { background: #202020; color: #FFF; text-decoration: none; } #footer-content .col { width: 260px; padding: 0 0 30px 0; } #footer-content .space-sep { margin-right: 20px; } #footer-content .col2 { width: 245px; padding: 0 0 30px 0; display: inline; } /* alignment classes */ .float-left { float: left; } .float-right { float: right; } .align-left { text-align: left; } .align-right { text-align: right; } /* additional classes */ .clear { clear: both; } .orange { color: #F3A251; } .post-footer { font-size: 95%; border: 1px solid #EFEFEF; background: #F8F8F8; padding: 8px 10px; margin: 30px 15px 10px 15px; } .post-footer .date { background: url('EliteCircle-images/clock.gif') no-repeat left center; padding-left: 20px; margin: 0 10px 0 5px; } .post-footer .comments { background: url('EliteCircle-images/comment.gif') no-repeat left center; padding-left: 20px; margin: 0 10px 0 5px; } .post-footer .readmore { background: url('EliteCircle-images/page.gif') no-repeat left center; padding-left: 20px; margin: 0 10px 0 5px; } </style> <title>EliteCircle</title> </head> <body> <!-- header starts here --> <div id="header-wrap"><div id="header-content"> <h1 id="logo"><a href="index.html" title="">Elite<span class="orange">Circle</span></a></h1> <h2 id="slogan">Put your site slogan here...</h2> <div id="header-links"> <p> <a href="index.html">Home</a> | <a href="index.html">Contact</a> | <a href="index.html">Site Map</a> </p> </div> <!-- Menu Tabs --> <ul> <li><a href="index.html" id="current">Home</a></li> <li><a href="index.html">News</a></li> <li><a href="index.html">Downloads</a></li> <li><a href="index.html">Support</a></li> <li><a href="index.html">About</a></li> </ul> </div></div> <!-- content-wrap starts here --> <div id="content-wrap"><div id="content"> <div id="main"> <a name="TemplateInfo"></a> <h1>Template Info</h1> <p> <a href="index.html"><img src="images/sample-image.jpg" width="174" height="140" alt="firefox-gray" class="float-left" /></a> <strong>EliteCircle</strong> is a free, W3C-compliant, CSS-based website template by <a href="http://www.domain.com/">styleshout.com</a>. This work is
distributed under the <a rel="license" href="http://domain.org/licenses/by/2.5/">
Creative Commons Attribution 2.5 License</a>, which means that you are free to use and modify it for any purpose. All I ask is that you give me credit by including a <strong>link back</strong> to <a href="http://www.domain.com/">my website</a>.
</p> <p> You can find more of my free template designs at <a href="http://www.domain.com/">my website</a>.
For premium commercial designs, you can check out <a href="http://www.domain.com" title="Website Templates">DreamTemplate.com</a>.
</p> <p class="post-footer align-right"> <a href="index.html" class="readmore">Read more</a> <a href="index.html" class="comments">Comments (7)</a> <span class="date">Jan 09, 2007</span> </p> <a name="SampleTags"></a> <h1>Sample Tags</h1> <h3>Code</h3> <p><code> code-sample { <br /> font-weight: bold;<br /> font-style: italic;<br /> } </code></p> <h3>Example Lists</h3> <ol> <li>here is an example of </li> <li>an ordered list</li> </ol> <ul> <li>here is an example of </li> <li>an unordered list</li> </ul> <h3>Blockquote</h3> <blockquote><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat....</p></blockquote> <h3>Image and text</h3> <p> <a href="index.html"><img src="images/sample-image.jpg" width="174" height="140" alt="sample image" class="float-left" /></a> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec libero. Suspendisse bibendum. Cras id urna. Morbi tincidunt, orci ac convallis aliquam, lectus turpis varius lorem, eu posuere nunc justo tempus leo. Donec mattis, purus nec placerat bibendum, dui pede condimentum odio, ac blandit ante orci ut diam. Cras fringilla magna. Phasellus suscipit, leo a pharetra condimentum, lorem tellus eleifend magna, eget fringilla velit magna id neque. Curabitur vel urna. In tristique orci porttitor ipsum. Aliquam ornare diam iaculis nibh. Proin luctus, velit pulvinar ullamcorper nonummy, mauris enim eleifend urna, congue egestas elit lectus eu est. </p> <h3>Table Styling</h3> <table> <tr> <th><strong>post</strong> date</th> <th>title</th> <th>description</th> </tr> <tr> <td>06.18.2007</td> <td><a href="index.html">Augue non nibh</a></td> <td><a href="index.html">Lobortis commodo metus vestibulum</a></td> </tr> <tr> <td>06.18.2007</td> <td><a href="index.html">Fusce ut diam bibendum</a></td> <td><a href="index.html">Purus in eget odio in sapien</a></td> </tr> <tr> <td>06.18.2007</td> <td><a href="index.html">Maecenas et ipsum</a></td> <td><a href="index.html">Adipiscing blandit quisque eros</a></td> </tr> <tr> <td>06.18.2007</td> <td><a href="index.html">Sed vestibulum blandit</a></td> <td><a href="index.html">Cras lobortis commodo metus lorem</a></td> </tr> </table> <h3>Example Form</h3> <form action="#"> <p> <label>Name</label> <input name="dname" value="Your Name" type="text" size="35" /> <label>Email</label> <input name="demail" value="Your Email" type="text" size="35" /> <label>Your Comments</label> <textarea rows="5" cols="5"></textarea> <br /> <input class="button" value="Submit" type="submit" /> </p> </form> <br /> </div> <div id="sidebar"> <h1>Search Box</h1> <form action="#" class="searchform"> <p> <input name="search_query" class="textbox" type="text" /> <input name="search" class="button" value="Search" type="submit" /> </p> </form> <h1>Sidebar Menu</h1> <ul class="sidemenu"> <li><a href="index.html">Home</a></li> <li><a href="#TemplateInfo">TemplateInfo</a></li> <li><a href="#SampleTags">Sample Tags</a></li> <li><a href="http://www.domain.com/">More Templates</a></li>
<li><a href="http://www.domain.com" title="Web Templates">Web Templates</a></li>
</ul> <h1>Sponsors</h1> <ul class="sidemenu"> <li><a href="http://www.domain.com" title="Website Templates">DreamTemplate</a></li>
<li><a href="http://www.domain.com" title="WordPress Themes">ThemeLayouts</a></li>
<li><a href="http://www.domain.com" title="Website Hosting">ImHosted.com</a></li>
<li><a href="http://www.domain.com" title="Stock Photos">DreamStock</a></li>
<li><a href="http://www.domain.com" title="Website Builder">Evrsoft</a></li>
<li><a href="http://www.domain.com" title="Web Hosting">Web Hosting</a></li>
</ul> <h1>Wise Words</h1> <p>"No man becomes rich unless he enriches others."</p> <p class="align-right">- Andrew Carnegie</p> <h1>Support Styleshout</h1> <p>If you are interested in supporting my work and would like to contribute, you are welcome to make a small donation through the <a href="http://www.styleshout.com/">donate link</a> on my website - it will be a great help and will surely be appreciated.</p> </div> <!-- content-wrap ends here --> </div></div> <!-- footer starts here --> <div id="footer-wrap"><div id="footer-content"> <div class="col float-left space-sep"> <h2>Site Partners</h2> <ul class="columns"> <li class="top"><a href="http://www.domain.com" title="Website Templates">DreamTemplate</a></li> <li><a href="http://www.dommain.com" title="WordPress Themes">ThemeLayouts</a></li> <li><a href="http://www.domain.com" title="Website Hosting">ImHosted.com</a></li>
<li><a href="http://www.domain.com" title="Stock Photos">DreamStock</a></li>
<li><a href="http://www.domain.com" title="Website Builder">Evrsoft</a></li>
<li><a href="http://www.domain.com" title="Web Hosting">Web Hosting</a></li>
</ul> </div> <div class="col float-left"> <h2>Links</h2> <ul class="columns"> <li class="top"><a href="index.html">Link One</a></li> <li><a href="index.html">Link Two</a></li> <li><a href="index.html">Link Three</a></li> <li><a href="index.html">Link Four</a></li> <li><a href="index.html">Link Five</a></li> <li><a href="index.html">Link Six</a></li> </ul> </div> <div class="col2 float-right"> <h2>Site Links</h2> <ul class="columns"> <li class="top"><a href="index.html">Home</a></li> <li><a href="index.html">About</a></li> <li><a href="index.html">Sitemap</a></li> <li><a href="index.html">RSS Feed</a></li> </ul> <p> © copyright 2010 <strong>Your Company Name</strong><br /> <a href="http://www.domain.com/" title="Website Templates">website templates</a> by <a href="http://www.styleshout.com/">styleshout</a>|<a href="http://www.ehostinfo.com/">Web Hosting</a> <br /> Valid <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> | <a href="http://validator.w3.org/check/referer">XHTML</a> </p> </div> <br class="clear" /> </div></div> <!-- footer ends here --> </body> </html>
th border-left: 1px solid #EDC9C9;
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta name="Description" content="Information architecture, Web Design, Web Standards." /> <meta name="Keywords" content="your, keywords" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="Distribution" content="Global" /> <meta name="Author" content="Erwin Aligam - ealigam@gmail.com" /> <meta name="Robots" content="index,follow" /> <style type='text/css'> /* -------------------------------------------------- AUTHOR : Erwin Aligam WEBSITE : http://www.styleshout.com/ TEMPLATE NAME : EliteCircle TEMPLATE CODE : S-0012 VERSION : 1.2 LAST MODIFIED : January 19, 2010 ----------------------------------------------------- */ /* -------------------------------------------------- HTML ELEMENTS ----------------------------------------------------- */ /* top elements */ * { padding: 0; margin: 0; } body { margin: 0; padding: 0; font: normal .70em/1.7em Verdana, 'Trebuchet MS', Tahoma, sans-serif; color: #555; text-align: center; background: #180700; } /* links */ a { color:#CB4721; background-color: inherit; text-decoration: none; } a:hover { background-color: inherit; text-decoration: underline; } /* headers */ h1, h2, h3 { font: normal 1em Georgia, "Times New Roman", Times, serif; color:#111; letter-spacing:-1px; } h1 { font-size: 3em; } h2 { font-size: 2.5em; color:#74743D; } h3 { font-size: 2em; color:#C34E23; letter-spacing: 0px;} p, h1, h2, h3 { margin: 10px 15px; padding: 0; } ul, ol { margin: 10px 30px; padding: 0 15px; } /* images */ img { border: 1px solid #DADADA; padding: 8px; } img.no-border { border: none; } img.float-right { margin: 5px 0px 5px 15px; } img.float-left { margin: 5px 15px 5px 0px; } code { margin: 5px 0; padding: 10px; text-align: left; display: block; overflow: auto; font: 500 1em/1.5em 'Lucida Console', 'courier new', monospace; /* white-space: pre; */ background: #FCFCF9; border: 1px solid #EFEFEF; } acronym { cursor: help; border-bottom: 1px solid #777; } blockquote { margin: 15px; padding: 0 0 0 30px; font: bold 1.3em/1.5em 'Trebuchet MS', Sans-serif; background: #FCFCF9; border: 1px solid #EFEFEF; color: #6C6E3A; } /* start - table */ table { border-collapse: collapse; margin: 15px; } th strong { color: #FFF; } th { background: #882D2D; height: 29px; padding-left: 12px; padding-right: 12px; color: #FFF; text-align: left; border-left: 1px solid #EDC9C9; border-bottom: 1px solid #FFF; } tr { height: 30px; background: #F3F3F3; } td { padding-left: 11px; padding-right: 11px; border-left: 1px solid #fff; border-bottom: 1px solid #fff; } /* end - table */ /* form elements */ form { margin: 15px; padding: 15px 5px; border: 1px solid #EFEFEF; background: #F8F8F8; } label { display:block; font-weight:bold; margin:5px 0; } input { padding: 2px; border: 1px solid #EFEFEF; font: normal 1em Verdana, 'Trebuchet MS', Tahoma, sans-serif; color: #666666; } textarea { width: 280px; padding:2px; border: 1px solid #EFEFEF; font: normal 1em Verdana, 'Trebuchet MS', Tahoma, sans-serif; height:100px; display:block; color: #666666; } input.button { margin: 0; font: bold 1em Arial, Sans-serif; border: 1px solid #EFEFEF; padding: 2px 3px; background: #F1F0E4; } /* search form */ .searchform { background-color: transparent; border: none; margin: 0; padding: 5px 0 15px 0; width: 190px; } .searchform p { margin: 0; padding: 0; } .searchform input.textbox { width: 120px; color: #333; height: 18px; padding: 2px; vertical-align: top; } .searchform input.button { font: bold 12px Arial, Sans-serif; color: #333; width: 60px; height: 26px; border: none; padding: 3px 5px; vertical-align: top; } /*********************** LAYOUT ************************/ #header-content, #footer-content, #content { width: 810px; } #header-wrap, #footer-wrap, #content-wrap { min-width: 810px; } /* header */ #header-wrap { height: 160px; text-align: left; background: #FFF url(EliteCircle-images/headerbg.jpg) repeat-x 0 0; } #header-content { position: relative; margin: 0 auto; padding: 0; } #header-content #logo { position: absolute; font: normal 40px/65px Georgia, "Times New Roman", Times, serif; letter-spacing: -1px; color: #FFF; background: #3F1204 url(EliteCircle-images/logobg.jpg) repeat-x left top; border: 1px solid #4E460F; height: 65px; padding: 0 10px; margin: 0; /* change the values of left and top to adjust the position of the logo */ top: 18px; left: 0px; } #header-content #logo a { text-decoration: none; color: #FFF; background: transparent; } #header-content #slogan { position: absolute; font: normal 12px 'Trebuchet MS', Tahoma, sans-serif; letter-spacing: 0px; color: #BBB; margin: 0; padding: 0; /* change the values of left and top to adjust the position of the slogan */ top: 88px; left: 30px; } /* header menu */ #header-content ul { position: absolute; right: 0px; top: 125px; font: bold 12px Georgia, "Times New Roman", Times, serif; list-style: none; margin: 0; padding: 0; text-transform: uppercase; } #header-content li { display: inline; } #header-content li a { float: left; display: block; padding: 0px 18px 7px 18px; color: #F3A251; text-decoration: none; } #header-content li a:hover { color: #F88F26; } #header-content li a#current { color: #FFF; } #header-content #header-links { position: absolute; top: 5px; right:10px; color: #8E5F2F; font-size: 90%; } #header-content #header-links P { margin: 0; padding: 0; } #header-content #header-links a { color: #A4A4A4; text-decoration: none; } #header-content #header-links a:hover { color: #F3A251; } /* content */ #content-wrap { clear: both; background: #FFF url(EliteCircle-images/contentbg.jpg) repeat-y center top; float: left; width: 100%; } #content { text-align: left; margin: 30px auto; padding: 0; } /* sidebar */ #sidebar { float: left; width: 190px; margin: 0 0 10px 0; padding: 5px 0 0 0; } #sidebar h1 { font: normal 1.8em Georgia, "Times New Roman", Times, serif; color: #6C6E3A; padding: 0; margin: 15px 0 10px 5px; letter-spacing:-1px; } #sidebar ul.sidemenu { margin: 5px 0 15px 0; padding: 0; border-top: 1px dashed #E1E1E1; } #sidebar ul.sidemenu li { list-style: none; border-bottom: 1px dashed #E1E1E1; } #sidebar ul.sidemenu a { display: block; color: #666666; text-decoration: none; padding: .3em 0 .3em 10px; width: 94%; } #sidebar ul.sidemenu a:hover { padding: .3em 0 .3em 10px; color: #CB4721; background: #FFF; } /* main */ #main { margin: 0 20px 10px 0; padding: 0; width: 590px; float: left; } #main h1 { font: normal 3em Georgia, "Times New Roman", Times, serif; color: #111; padding: 0 0 5px 0; margin: 15px 15px 20px 15px; letter-spacing:-1px; background: url(EliteCircle-images/bk_dotted.gif) repeat-x left bottom; } #main h1 a { color: #111; text-decoration: none; } #main p, #main h1, #main h2, #main h3, #main blockquote, #main form, #main table { margin-left: 0; } #main form p { margin: 15px; } /* footer */ #footer-wrap { position: relative; clear: both; padding: 2.5em 0; font: normal .95em 'Trebuchet MS', Tahoma, sans-serif; text-align: left; background: url(EliteCircle-images/footerbg.jpg) repeat-x 0 0; color: #CCC; width: 100%; float: left; } #footer-wrap p { margin-left: 0; } #footer-wrap h2 { font: bold 1.6em 'Trebuchet MS', Tahoma, sans-serif; text-transform: uppercase; letter-spacing: 0px; color: #CC9933; margin-left: 5px; } #footer-content { margin: 0 auto; } #footer-content a { color: #C8935D; } #footer-content a:hover { color: #FFF; text-decoration: none; } #footer-content ul { list-style: none; margin: 0; padding: 0; width: 98%; } #footer-content ul.columns li { border-bottom: 1px dashed #272727; } #footer-content ul.columns li.top { border-top: 1px dashed #272727; } #footer-content ul.columns li a { display: block; font-weight: normal; padding: 5px; width: 98%; color: #BDBDBD; } #footer-content ul.columns li a:hover { background: #202020; color: #FFF; text-decoration: none; } #footer-content .col { width: 260px; padding: 0 0 30px 0; } #footer-content .space-sep { margin-right: 20px; } #footer-content .col2 { width: 245px; padding: 0 0 30px 0; display: inline; } /* alignment classes */ .float-left { float: left; } .float-right { float: right; } .align-left { text-align: left; } .align-right { text-align: right; } /* additional classes */ .clear { clear: both; } .orange { color: #F3A251; } .post-footer { font-size: 95%; border: 1px solid #EFEFEF; background: #F8F8F8; padding: 8px 10px; margin: 30px 15px 10px 15px; } .post-footer .date { background: url('EliteCircle-images/clock.gif') no-repeat left center; padding-left: 20px; margin: 0 10px 0 5px; } .post-footer .comments { background: url('EliteCircle-images/comment.gif') no-repeat left center; padding-left: 20px; margin: 0 10px 0 5px; } .post-footer .readmore { background: url('EliteCircle-images/page.gif') no-repeat left center; padding-left: 20px; margin: 0 10px 0 5px; } </style> <title>EliteCircle</title> </head> <body> <!-- header starts here --> <div id="header-wrap"><div id="header-content"> <h1 id="logo"><a href="index.html" title="">Elite<span class="orange">Circle</span></a></h1> <h2 id="slogan">Put your site slogan here...</h2> <div id="header-links"> <p> <a href="index.html">Home</a> | <a href="index.html">Contact</a> | <a href="index.html">Site Map</a> </p> </div> <!-- Menu Tabs --> <ul> <li><a href="index.html" id="current">Home</a></li> <li><a href="index.html">News</a></li> <li><a href="index.html">Downloads</a></li> <li><a href="index.html">Support</a></li> <li><a href="index.html">About</a></li> </ul> </div></div> <!-- content-wrap starts here --> <div id="content-wrap"><div id="content"> <div id="main"> <a name="TemplateInfo"></a> <h1>Template Info</h1> <p> <a href="index.html"><img src="images/sample-image.jpg" width="174" height="140" alt="firefox-gray" class="float-left" /></a> <strong>EliteCircle</strong> is a free, W3C-compliant, CSS-based website template by <a href="http://www.styleshout.com/">styleshout.com</a>. This work is distributed under the <a rel="license" href="http://creativecommons.org/licenses/by/2.5/"> Creative Commons Attribution 2.5 License</a>, which means that you are free to use and modify it for any purpose. All I ask is that you give me credit by including a <strong>link back</strong> to <a href="http://www.styleshout.com/">my website</a>. </p> <p> You can find more of my free template designs at <a href="http://www.styleshout.com/">my website</a>. For premium commercial designs, you can check out <a href="http://www.dreamtemplate.com" title="Website Templates">DreamTemplate.com</a>. </p> <p class="post-footer align-right"> <a href="index.html" class="readmore">Read more</a> <a href="index.html" class="comments">Comments (7)</a> <span class="date">Jan 09, 2007</span> </p> <a name="SampleTags"></a> <h1>Sample Tags</h1> <h3>Code</h3> <p><code> code-sample { <br /> font-weight: bold;<br /> font-style: italic;<br /> } </code></p> <h3>Example Lists</h3> <ol> <li>here is an example of </li> <li>an ordered list</li> </ol> <ul> <li>here is an example of </li> <li>an unordered list</li> </ul> <h3>Blockquote</h3> <blockquote><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat....</p></blockquote> <h3>Image and text</h3> <p> <a href="index.html"><img src="images/sample-image.jpg" width="174" height="140" alt="sample image" class="float-left" /></a> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec libero. Suspendisse bibendum. Cras id urna. Morbi tincidunt, orci ac convallis aliquam, lectus turpis varius lorem, eu posuere nunc justo tempus leo. Donec mattis, purus nec placerat bibendum, dui pede condimentum odio, ac blandit ante orci ut diam. Cras fringilla magna. Phasellus suscipit, leo a pharetra condimentum, lorem tellus eleifend magna, eget fringilla velit magna id neque. Curabitur vel urna. In tristique orci porttitor ipsum. Aliquam ornare diam iaculis nibh. Proin luctus, velit pulvinar ullamcorper nonummy, mauris enim eleifend urna, congue egestas elit lectus eu est. </p> <h3>Table Styling</h3> <table> <tr> <th><strong>post</strong> date</th> <th>title</th> <th>description</th> </tr> <tr> <td>06.18.2007</td> <td><a href="index.html">Augue non nibh</a></td> <td><a href="index.html">Lobortis commodo metus vestibulum</a></td> </tr> <tr> <td>06.18.2007</td> <td><a href="index.html">Fusce ut diam bibendum</a></td> <td><a href="index.html">Purus in eget odio in sapien</a></td> </tr> <tr> <td>06.18.2007</td> <td><a href="index.html">Maecenas et ipsum</a></td> <td><a href="index.html">Adipiscing blandit quisque eros</a></td> </tr> <tr> <td>06.18.2007</td> <td><a href="index.html">Sed vestibulum blandit</a></td> <td><a href="index.html">Cras lobortis commodo metus lorem</a></td> </tr> </table> <h3>Example Form</h3> <form action="#"> <p> <label>Name</label> <input name="dname" value="Your Name" type="text" size="35" /> <label>Email</label> <input name="demail" value="Your Email" type="text" size="35" /> <label>Your Comments</label> <textarea rows="5" cols="5"></textarea> <br /> <input class="button" value="Submit" type="submit" /> </p> </form> <br /> </div> <div id="sidebar"> <h1>Search Box</h1> <form action="#" class="searchform"> <p> <input name="search_query" class="textbox" type="text" /> <input name="search" class="button" value="Search" type="submit" /> </p> </form> <h1>Sidebar Menu</h1> <ul class="sidemenu"> <li><a href="index.html">Home</a></li> <li><a href="#TemplateInfo">TemplateInfo</a></li> <li><a href="#SampleTags">Sample Tags</a></li> <li><a href="http://www.styleshout.com/">More Templates</a></li> <li><a href="http://www.dreamtemplate.com" title="Web Templates">Web Templates</a></li> </ul> <h1>Sponsors</h1> <ul class="sidemenu"> <li><a href="http://www.dreamtemplate.com" title="Website Templates">DreamTemplate</a></li> <li><a href="http://www.themelayouts.com" title="WordPress Themes">ThemeLayouts</a></li> <li><a href="http://www.imhosted.com" title="Website Hosting">ImHosted.com</a></li> <li><a href="http://www.dreamstock.com" title="Stock Photos">DreamStock</a></li> <li><a href="http://www.evrsoft.com" title="Website Builder">Evrsoft</a></li> <li><a href="http://www.webhostingwp.com" title="Web Hosting">Web Hosting</a></li> </ul> <h1>Wise Words</h1> <p>"No man becomes rich unless he enriches others."</p> <p class="align-right">- Andrew Carnegie</p> <h1>Support Styleshout</h1> <p>If you are interested in supporting my work and would like to contribute, you are welcome to make a small donation through the <a href="http://www.styleshout.com/">donate link</a> on my website - it will be a great help and will surely be appreciated.</p> </div> <!-- content-wrap ends here --> </div></div> <!-- footer starts here --> <div id="footer-wrap"><div id="footer-content"> <div class="col float-left space-sep"> <h2>Site Partners</h2> <ul class="columns"> <li class="top"><a href="http://www.dreamtemplate.com" title="Website Templates">DreamTemplate</a></li> <li><a href="http://www.themelayouts.com" title="WordPress Themes">ThemeLayouts</a></li> <li><a href="http://www.imhosted.com" title="Website Hosting">ImHosted.com</a></li> <li><a href="http://www.dreamstock.com" title="Stock Photos">DreamStock</a></li> <li><a href="http://www.evrsoft.com" title="Website Builder">Evrsoft</a></li> <li><a href="http://www.webhostingwp.com" title="Web Hosting">Web Hosting</a></li> </ul> </div> <div class="col float-left"> <h2>Links</h2> <ul class="columns"> <li class="top"><a href="index.html">Link One</a></li> <li><a href="index.html">Link Two</a></li> <li><a href="index.html">Link Three</a></li> <li><a href="index.html">Link Four</a></li> <li><a href="index.html">Link Five</a></li> <li><a href="index.html">Link Six</a></li> </ul> </div> <div class="col2 float-right"> <h2>Site Links</h2> <ul class="columns"> <li class="top"><a href="index.html">Home</a></li> <li><a href="index.html">About</a></li> <li><a href="index.html">Sitemap</a></li> <li><a href="index.html">RSS Feed</a></li> </ul> <p> © copyright 2010 <strong>Your Company Name</strong><br /> <a href="http://www.bluewebtemplates.com/" title="Website Templates">website templates</a> by <a href="http://www.styleshout.com/">styleshout</a>|<a href="http://www.ehostinfo.com/">Web Hosting</a> <br /> Valid <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> | <a href="http://validator.w3.org/check/referer">XHTML</a> </p> </div> <br class="clear" /> </div></div> <!-- footer ends here --> </body> </html>
th border-bottom: solid 2px #fff;
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta name="Description" content="Information architecture, Web Design, Web Standards." /> <meta name="Keywords" content="your, keywords" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="Distribution" content="Global" /> <meta name="Author" content="Erwin Aligam - ealigam@gmail.com" /> <meta name="Robots" content="index,follow" /> <style type='text/css'> /* start - table */ table { border-collapse: collapse; margin: 10px; } th strong { color: #fff; } th { background: #e7e6e6 url(MarketPlace-images/button.jpg) repeat-x; height: 29px; padding-left: 12px; padding-right: 12px; text-align: left; border-left: 1px solid #f4f4f4; border-bottom: solid 2px #fff; color: #333; } tr { height: 30px; } td { padding-left: 11px; padding-right: 11px; border-left: 1px solid #fff; border-bottom: 1px solid #fff; } td.first,th.first { border-left: 0px; } tr.row-a { background: #F8F8F8; } tr.row-b { background: #EFEFEF; } /* end - table */ </style> <title>Marketplace</title> </head> <body> <!-- wrap starts here --> <div id="wrap"> <h3>Table Styling</h3> <table> <tr> <th class="first">post date</th> <th>title</th> <th>description</th> </tr> <tr class="row-a"> <td class="first">04.18.2007</td> <td><a href="index.html">Augue non nibh</a></td> <td><a href="index.html">Lobortis commodo metus vestibulum</a></td> </tr> <tr class="row-b"> <td class="first">04.18.2007</td> <td><a href="index.html">Fusce ut diam bibendum</a></td> <td><a href="index.html">Purus in eget odio in sapien</a></td> </tr> <tr class="row-a"> <td class="first">04.18.2007</td> <td><a href="index.html">Maecenas et ipsum</a></td> <td><a href="index.html">Adipiscing blandit quisque eros</a></td> </tr> <tr class="row-b"> <td class="first">04.18.2007</td> <td><a href="index.html">Sed vestibulum blandit</a></td> <td><a href="index.html">Cras lobortis commodo metus lorem</a></td> </tr> </table> </div> </body> </html>
th border-left: 1px solid #f4f4f4;
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta name="Description" content="Information architecture, Web Design, Web Standards." /> <meta name="Keywords" content="your, keywords" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="Distribution" content="Global" /> <meta name="Author" content="Erwin Aligam - ealigam@gmail.com" /> <meta name="Robots" content="index,follow" /> <style type='text/css'> /* start - table */ table { border-collapse: collapse; margin: 10px; } th strong { color: #fff; } th { background: #e7e6e6 url(MarketPlace-images/button.jpg) repeat-x; height: 29px; padding-left: 12px; padding-right: 12px; text-align: left; border-left: 1px solid #f4f4f4; border-bottom: solid 2px #fff; color: #333; } tr { height: 30px; } td { padding-left: 11px; padding-right: 11px; border-left: 1px solid #fff; border-bottom: 1px solid #fff; } td.first,th.first { border-left: 0px; } tr.row-a { background: #F8F8F8; } tr.row-b { background: #EFEFEF; } /* end - table */ </style> <title>Marketplace</title> </head> <body> <!-- wrap starts here --> <div id="wrap"> <h3>Table Styling</h3> <table> <tr> <th class="first">post date</th> <th>title</th> <th>description</th> </tr> <tr class="row-a"> <td class="first">04.18.2007</td> <td><a href="index.html">Augue non nibh</a></td> <td><a href="index.html">Lobortis commodo metus vestibulum</a></td> </tr> <tr class="row-b"> <td class="first">04.18.2007</td> <td><a href="index.html">Fusce ut diam bibendum</a></td> <td><a href="index.html">Purus in eget odio in sapien</a></td> </tr> <tr class="row-a"> <td class="first">04.18.2007</td> <td><a href="index.html">Maecenas et ipsum</a></td> <td><a href="index.html">Adipiscing blandit quisque eros</a></td> </tr> <tr class="row-b"> <td class="first">04.18.2007</td> <td><a href="index.html">Sed vestibulum blandit</a></td> <td><a href="index.html">Cras lobortis commodo metus lorem</a></td> </tr> </table> </div> </body> </html>
Table header with border
<html>
<head>
<title> HTML tables </title>
<style type='text/css'>
table {
width: 300px;
caption-side: bottom;
border: thin solid black;
table-layout: fixed;
border-spacing: 0;
margin: 5px;
}
th, td {
border: thin solid black;
text-align: center;
font-weight: bold;
overflow: hidden;
}
th {
background: lightgrey;
}
td {
vertical-align: top;
}
caption {
font-size: 90%;
text-align: right;
}
td, th, caption {
padding: 5px;
}
</style>
</head>
<body>
<table>
<caption>
My favorite movies.
</caption>
<colgroup>
<col id='movie' />
<col id='cast' />
<col id='genre' />
<col id='year' />
</colgroup>
<thead>
<tr>
<th> movie </th>
<th> stars </th>
<th> genre </th>
<th> year </th>
</tr>
</thead>
<tbody>
<tr>
<td> B</td>
<td> J</td>
<td> C</td>
<td> 2</td>
</tr>
<tr>
<td> T</td>
<td> E</td>
<td> A</td>
<td> 2</td>
</tr>
<tr>
<td> T</td>
<td> K</td>
<td> A</td>
<td> 2</td>
</tr>
</tbody>
</table>
</body>
</html>Set table border for table header
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Chater 3 - Tables are Evil?</title> <style type="text/css" media="screen"> div { margin-bottom: 30px; } #divID table { border-top: 1px solid #999; border-left: 1px solid #999; } #divID th, #divID td { border-right: 1px solid #999; border-bottom: 1px solid #999; } </style> </head> <body> <div id="divID"> <table summary="Summary goes here"> <caption>This is the title of the table</caption> <tr> <th>Year</th> <th>Opponent</th> <th>Item 3</th> </tr> <tr> <td>1918</td> <td>Item A</td> <td>75-51</td> </tr> <tr> <td>1916</td> <td>Item B</td> <td>91-63</td> </tr> <tr> <td>1915</td> <td>Item C</td> <td>101-50</td> </tr> <tr> <td>1912</td> <td>Item D</td> <td>105-47</td> </tr> </table> </div> </body> </html>