Add example of HTML tables can't be styled using CSS.
authorMike Taylor <mike@indexdata.com>
Mon, 19 May 2014 15:32:02 +0000 (16:32 +0100)
committerMike Taylor <mike@indexdata.com>
Mon, 19 May 2014 15:32:02 +0000 (16:32 +0100)
Darn.

examples/htdocs/table.html [new file with mode: 0644]

diff --git a/examples/htdocs/table.html b/examples/htdocs/table.html
new file mode 100644 (file)
index 0000000..2f1c31c
--- /dev/null
@@ -0,0 +1,24 @@
+<html>
+  <head>
+    <style type="text/css">
+      body  { background: white }
+      table { background: pink;   margin: 20px;  border: 5px solid red; padding: 10px; }
+      tr    { background: green;  margin: 200px; border: 5px solid red; padding: 100px; }
+      td    { background: yellow; margin: 200px; border: 5px solid red; padding: 10px; }
+      p     { background: cyan;   margin: 20px;  border: 5px solid red; padding: 10px; }
+    </style>
+  </head>
+  <body>
+    <table>
+      <tr>
+       <td><div>Top left</div></td>
+       <td><div>Top right</div></td>
+      </tr>
+      <tr>
+       <td><div>Bottom left</div></td>
+       <td><div>Bottom right</div></td>
+      </tr>
+    </table>
+    <p>This is a paragraph</p>
+  </body>
+</html>