block-horizontal-2-ref.html 400 B

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