index.html:
<meta charset="UTF-8" /> <title></title> <link href="styles/format.css" rel="stylesheet" /> <table> <caption> Itinerary</caption> <thead> <tr> <th> When</th> <th> Where</th> </tr> </thead> <tbody> <tr> <td>June 9th</td> <td>Poratland,<abbr title="Oregon">OR</abbr></td> </tr> <tr> <td>June 10th</td> <td>Poratland,<abbr title="Oregon">OR</abbr></td> </tr> <tr> <td>June 11th</td> <td>Poratland,<abbr title="Oregon">OR</abbr></td> </tr> </tbody> </table> <script src="JS/add.js"></script>
format.css:
body{ background-color: #fff; color: #000; } table{ margin:auto; border:1px solid #699; } caption{ margin:auto; padding: .2em; font-size: 1.2em; font-weight: bold; } th{ font-weight: normal; font-style: italic; text-align: left; border:1px dotted #699; background-color: #9cc; color: #000; } th,td{ width:10em; padding: .5em; text-align: center; }add.js:
function addLoadEvent(func){ var oldonload = window.onload; if (typeof window.onload != 'function'){ window.onload = func; }else { window.onload = function(){ oldonload(); func(); } } } function stripeTables(){ if (!document.getElementsByTagName) return false; var tables = document.getElementsByTagName("table"); var odd,rows; for(var i=0; i