block-sibling-2-ref.html 336 B

123456789101112131415161718192021222324252627
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style type="text/css">
  5. #a {
  6. height: 20px;
  7. background-color: red;
  8. margin-bottom: 20px;
  9. }
  10. #b {
  11. height: 20px;
  12. background-color: green;
  13. margin-bottom: 20px;
  14. }
  15. #c {
  16. height: 20px;
  17. background-color: blue;
  18. }
  19. </style>
  20. </head>
  21. <body>
  22. <div id="a"></div>
  23. <div id="b"></div>
  24. <div id="c"></div>
  25. </body>
  26. </html>