block-non-sibling-2d.html 314 B

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