columnfill-auto-2.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <link rel="stylesheet" type="text/css" href="ahem.css" />
  5. <style>
  6. html {
  7. line-height: 1.5;
  8. font-family: ahem;
  9. }
  10. body {
  11. margin: 0;
  12. padding: 0;
  13. }
  14. #test {
  15. padding: 5px 0px 0px 10px;
  16. position: absolute;
  17. left: 500px;
  18. right: 0px;
  19. top: 0px;
  20. bottom: 0px;
  21. background-color: orange;
  22. height: 120px;
  23. -moz-column-width: 640px;
  24. -moz-column-fill: auto;
  25. -moz-column-gap: 0;
  26. overflow-x: auto;
  27. overflow-y: hidden;
  28. }
  29. #parent {
  30. background-color: lightBlue;
  31. position: absolute;
  32. left: 0px;
  33. bottom: 0px;
  34. right: 0px;
  35. height: 120px;
  36. width: 70em;
  37. }
  38. </style>
  39. </head>
  40. <body>
  41. <div id="parent">
  42. <div id="test">To Mrs. Aville, England St. Petersburgh, Dec. 11th, 17- You will rejoice to hear that no disaster has accompanied the commencement of an enterprise which you have regarded with such evil forebodings. I arrived here yesterday; and my first task is to assure my dear sister of my welfare, and increasing confidence in the success of my undertaking. I am already far north of London; and as I walk in the streets of Petersburgh. I feel a cold northern breeze play upon my cheeks, which braces my nerves, and fills me with delight.</div>
  43. </div>
  44. </body>
  45. </html>