float-left-and-inflow-details-ref.html 568 B

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE html>
  2. <!-- Any copyright is dedicated to the Public Domain.
  3. - http://creativecommons.org/publicdomain/zero/1.0/ -->
  4. <html>
  5. <style>
  6. body {
  7. width: 400px;
  8. }
  9. div#float {
  10. float: left;
  11. width: 200px;
  12. height: 200px;
  13. background-color: lightgreen;
  14. }
  15. div#details {
  16. background-color: orange;
  17. }
  18. div#summary {
  19. background-color: green;
  20. }
  21. </style>
  22. <body>
  23. <div id="float"></div>
  24. <div id="details">
  25. <div id="summary">Summary</div>
  26. <!-- No content due to closed details -->
  27. </div>
  28. </body>
  29. </html>