float-right-and-inflow-open-details-ref.html 1009 B

12345678910111213141516171819202122232425262728293031323334353637
  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: right;
  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. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
  27. tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
  28. veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
  29. commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
  30. velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
  31. cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
  32. est laborum.
  33. </div>
  34. </body>
  35. </html>