123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Float grid with dummy content</title>
- <!-- the base styles and "housekeeping" styles are in here: -->
- <link rel="stylesheet" href="css/grid-base.css">
- <!-- the HTML5 shiv, to help older browsers understand styling
- on newer HTML5 elements: -->
- <script src="js/html5shiv.min.js"></script>
- <style>
- /* grid styling */
- .row {
- margin: 0 -.9%;
- padding: 0;
- list-style: none;
- }
- .row:after {
- content: '';
- display: block;
- clear: both;
- }
- .col {
- float: left;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- }
- .col:last-child {
- float: right;
- }
- .row-quartet > * {
- width: 25%;
- }
- .row-trio > * {
- width: 33.33333%;
- }
- /* content styling */
- .subcategory {
- margin-top: 1.5em;
- border-bottom: 1px solid #8e3339;
- }
- .subcategory-featured {
- width: 50%;
- }
- .subcategory-content {
- width: 80%;
- }
- .subcategory-header {
- width: 20%;
- }
- .story {
- padding: .6875em;
- background-color: #eee;
- }
- .story + .story {
- margin-top: 1.375em;
- }
- .story img {
- width: 100%;
- }
- </style>
- </head>
- <body>
- <header class="masthead">
- <div class="wrapper">
- <h1>Important News</h1>
- </div>
- </header>
- <nav role="navigation" class="navbar">
- <div class="wrapper">
- <ul class="navlist">
- <li><a href="#">Home</a></li>
- <li><a href="#">World</a></li>
- <li><a href="#">Local</a></li>
- <li><a href="#">Sports</a></li>
- </ul>
- </div>
- </nav>
- <main class="wrapper">
-
- <section class="subcategory">
- <div class="row">
- <header class="col subcategory-header">
- <h2>Lorem ipsum</h2>
- </header>
- <div class="col subcategory-content">
- <div class="row row-quartet">
- <div class="col subcategory-featured">
- <article class="story">
- <img src="http://placehold.it/600x300" alt="Dummy image">
- <h3><a href="#">Cras suscipit nec leo id.</a></h3>
- <p>Autem repudiandae aliquid tempora quos reprehenderit architecto, sequi repellat.</p>
- </article>
- </div>
- <div class="col">
- <article class="story">
- <img src="http://placehold.it/600x300" alt="Dummy image">
- <h3><a href="#">Perferendis, ipsam!</a></h3>
- <p>Neque magnam vero obcaecati facere nobis sint dolore accusamus vitae consequuntur ad necessitatibus, laborum molestiae.</p>
- </article>
- </div>
- <div class="col">
- <article class="story">
- <img src="http://placehold.it/600x300" alt="Dummy image">
- <h3><a href="#">Curabitur mattis purus nec velit.</a></h3>
- <p>Neque magnam vero obcaecati facere nobis sint dolore accusamus vitae consequuntur ad necessitatibus, laborum molestiae.</p>
- </article>
- </div>
- </div>
- <div class="row row-quartet">
- <div class="col">
- <article class="story">
- <h3><a href="#">Perferendis, ipsam!</a></h3>
- <p>Neque magnam vero obcaecati facere nobis sint dolore accusamus vitae consequuntur ad necessitatibus, laborum molestiae.</p>
- </article>
- </div>
- <div class="col">
- <article class="story">
- <h3><a href="#">Aliquam mattis eros id posuere.</a></h3>
- <p>Neque magnam vero obcaecati facere nobis sint dolore accusamus vitae consequuntur ad necessitatibus, laborum molestiae.</p>
- </article>
- </div>
- <div class="col">
- <article class="story">
- <h3><a href="#">Proin leo felis, semper nec</a></h3>
- <p>Neque magnam vero obcaecati facere nobis sint dolore accusamus vitae consequuntur ad necessitatibus, laborum molestiae.</p>
- </article>
- </div>
- <div class="col">
- <article class="story">
- <h3><a href="#">Aliquam vitae risus tortor. Sed!</a></h3>
- <p>Neque magnam vero obcaecati facere nobis sint dolore accusamus vitae consequuntur ad necessitatibus, laborum molestiae.</p>
- </article>
- </div>
- </div>
- </div>
- </div>
- </section>
- <section class="subcategory">
- <div class="row">
- <header class="col subcategory-header">
- <h2>Dolor sit amet</h2>
- </header>
- <div class="col subcategory-content">
- <div class="row row-trio">
- <div class="col">
- <article class="story">
- <img src="http://placehold.it/600x300" alt="Dummy image">
- <h3><a href="#">Ut sit amet mi massa</a></h3>
- <p>Neque magnam vero obcaecati facere nobis sint dolore accusamus vitae consequuntur ad necessitatibus, laborum molestiae.</p>
- </article>
- </div>
- <div class="col">
- <article class="story">
- <h3><a href="#">Nunc mollis sit amet nunc</a></h3>
- <p>Neque magnam vero obcaecati facere nobis sint dolore accusamus vitae consequuntur ad necessitatibus, laborum molestiae.</p>
- </article>
- <article class="story">
- <h3><a href="#">Duis sed ante enim. Cras</a></h3>
- <p>Neque magnam vero obcaecati facere nobis sint dolore accusamus vitae consequuntur ad necessitatibus, laborum molestiae.</p>
- </article>
- </div>
- <div class="col">
- <article class="story">
- <img src="http://placehold.it/600x300" alt="Dummy image">
- <h3><a href="#">Animi, explicabo, ipsum</a></h3>
- <p>Neque magnam vero obcaecati facere nobis sint dolore accusamus vitae consequuntur ad necessitatibus, laborum molestiae.</p>
- </article>
- </div>
- </div>
- </div>
- </div>
- </section>
- </main>
- </body>
- </html>
|