table-sibling-2-noref2.html 459 B

123456789101112131415161718192021222324252627282930
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style type="text/css">
  5. #table1 {
  6. display: table;
  7. height: 20px; width: 100px;
  8. background-color: green;
  9. margin-bottom: 40px;
  10. }
  11. #table2 {
  12. display: table;
  13. height: 20px; width: 100px;
  14. background-color: red;
  15. margin-bottom: 40px;
  16. }
  17. #table3 {
  18. display: table;
  19. height: 20px; width: 100px;
  20. background-color: blue;
  21. }
  22. </style>
  23. </head>
  24. <body>
  25. <div id="table1"></div>
  26. <div id="table2"></div>
  27. <div id="table3"></div>
  28. </body>
  29. </html>