12-XX-media-object-container-content.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>OOCSS – media object, structure vs skin</title>
  6. <style>
  7. /* grid styles */
  8. .row {
  9. margin: 0 -1em;
  10. }
  11. .row:after {
  12. content: '';
  13. clear: both;
  14. display: block;
  15. }
  16. .row-trio > * {
  17. width: 33.333%;
  18. box-sizing: border-box;
  19. padding: 0 1em;
  20. margin-bottom: 2em;
  21. }
  22. .col {
  23. float: left;
  24. }
  25. </style>
  26. </head>
  27. <body>
  28. <div class="row row-trio"><!-- container -->
  29. <div class="col"><!-- container -->
  30. <!-- content: -->
  31. <article class="media-block post-teaser">
  32. <div class="media-body post-teaser-body">
  33. <h2 class="post-title">Post teaser heading</h2>
  34. <p>Article text goes here...</p>
  35. </div>
  36. <img class="media-fig post-fig" src="" alt="">
  37. </article>
  38. </div>
  39. <div class="col"><!-- container -->
  40. <!-- content: -->
  41. <article class="media-block post-teaser">
  42. <div class="media-body post-teaser-body">
  43. <h2 class="post-title">Post teaser no. 2</h2>
  44. <p>Article text goes here...</p>
  45. </div>
  46. <img class="media-fig post-fig" src="" alt="">
  47. </article>
  48. </div>
  49. <div class="col"><!-- container -->
  50. <!-- content: -->
  51. <article class="media-block post-teaser">
  52. <div class="media-body post-teaser-body">
  53. <h2 class="post-title">Post teaser no. 2</h2>
  54. <p>Article text goes here...</p>
  55. </div>
  56. <img class="media-fig post-fig" src="" alt="">
  57. </article>
  58. </div>
  59. </div>
  60. </body>
  61. </html>