Advertisement
PayneLess_Designs

PayneLess Designs - Table Example (HTML 5

May 14th, 2012
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.36 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en"><head>
  3. <meta charset="utf-8">
  4. <title>Table Example (HTML 5)</title>
  5.  
  6. <meta name="created" content="Fri, 15 Oct 2010 21:46:04 GMT">
  7. <meta name="Description" content="The Shadow Knows">
  8. <meta name="Keywords" content="table tags, html 5">
  9. <meta name="author" content="PayneLess Designs">
  10. <meta name="copyright" content="Jan 2004 to present.">
  11. <meta name="robots" content="all">
  12. <meta name="revisit-after" content="60 days">
  13. <!-- Web 2.0 uses the space and "/" to close tags with no normal closing tag:
  14. <meta name="copyright" content="hubpages" />
  15.  
  16. meta name="revised" content="The Shadow Knows, 12/5/2012" />
  17. <meta http-equiv="refresh" content="30" />
  18. -->
  19.  
  20. <style>
  21. * { margin: 0; padding: 0; border: 0; }
  22. h1 { text-align: center; margin: 2% 0; }
  23.  
  24. table#main {
  25. width: 800px;
  26. height: 561px;
  27. margin: 0 auto;
  28. border-collapse: collapse;
  29. border: 2.5em solid #f00;
  30. /* background: #f0f url(jamie-recipesboxes-lrg.gif) no-repeat center scroll; */
  31. font-family: arial, 'times new roman', sans-serif;
  32. font-size: 1em;
  33. color: #000;
  34. }
  35.  
  36. table#main td#one {
  37. width: 745px;
  38. height: 73px;
  39. border-bottom: 1.2em solid #f00;
  40. background: #fff;
  41. }
  42.  
  43. table#main td#two {
  44. width: 739px;
  45. height: 400px;
  46. margin: 0 auto;
  47. border: .5em solid #fff;
  48. background: #fff;
  49. padding: 0 0 15px 0;
  50. }
  51.  
  52. table#main td#two table#table-two {
  53. width: 724px;
  54. height: 400px;
  55. margin: 0 auto;
  56. border-collapse: collapse;
  57. border: 2.7em solid #fe00fe;
  58. background: #fff;
  59. }
  60.  
  61. td#two table#table-two td#left {
  62. width: 168px;
  63. height: 400px;
  64. border-right: 1.6em solid #fe00fe;
  65. }
  66. </style>
  67.  
  68. <!--[if IE]>
  69. <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  70. <style>
  71. table#main {
  72. border: 1.5em solid #f00;
  73. font-size: 1em;
  74. color: #000;
  75. }
  76.  
  77. table#main td#one {
  78. border-bottom: .8em solid #f00;
  79. }
  80.  
  81. table#main td#two {
  82. border: .2em solid #fff;
  83. padding: 0 17px 17px 17px;
  84. }
  85.  
  86.  
  87. table#main td#two table#table-two {
  88. border: 1.5em solid #fe00fe;
  89. }
  90.  
  91. td#two table#table-two td#left {
  92. border-right: .8em solid #fe00fe;
  93. }
  94. </style>
  95. <![endif]-->
  96. </head><body>
  97. <h1>Table Example (HTML 5 DocType)</h1>
  98. <table id="main">
  99. <tbody>
  100. <tr><td id="one">&nbsp;</td></tr>
  101.  
  102. <tr><td id="two">&nbsp;
  103.  
  104.     <table id="table-two">
  105.     <tr><td id="left">&nbsp;</td><td>&nbsp;</td></tr>
  106.     </table>
  107.  
  108. </td></tr>
  109.  
  110. </tbody>
  111. </table>
  112. </body></html>
  113. <!-- HTML 5 Folder |  -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement