float-in-summary-ref.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. div#details {
  7. background-color: orange;
  8. overflow: auto;
  9. width: 500px;
  10. }
  11. div#summary {
  12. background-color: green;
  13. width: 400px;
  14. }
  15. h4 {
  16. background-color: cyan;
  17. width: 100px;
  18. height: 100px;
  19. float: right;
  20. margin: 0;
  21. }
  22. </style>
  23. <body>
  24. <div id="details">
  25. <div id="summary">
  26. <h4>This is float: right in summary</h4>Lorem ipsum dolor sit amet,
  27. consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore
  28. et dolore magna aliqua.
  29. </div>
  30. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
  31. tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
  32. veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
  33. commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
  34. velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
  35. cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
  36. est laborum.
  37. </div>
  38. </body>
  39. </html>