Permalink
Browse files

removed floats for layout and added flexbox

  • Loading branch information...
jamieking committed Jan 25, 2018
1 parent 8072221 commit 24ce9e03d7b0a82903942493ded9b5b1c345e4a2
@@ -7,12 +7,11 @@
}

main {
float: left;
width: 66.66667%;
}

aside {
float: right;

width: 29%;
margin-top: 6em; /* =108px, em means parent font size times 6 */
color: #888;
@@ -32,6 +31,15 @@ a:hover {
color: #A00;
}

nav ul {
display: flex;
}

.blog-body {
display: flex;
justify-content: space-between;
}

h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 0;
@@ -100,7 +108,7 @@ header nav ul {
padding: 0;
}
header nav ul li {
float: left;

width: 16.66667%;
margin: 0;
padding: 0;
@@ -125,7 +133,7 @@ article {
padding-bottom: 1.5em;
}
article p:first-of-type:first-letter {
float: left;

font-size: 6em;
line-height: 1;
color: #DDD;
@@ -144,30 +152,4 @@ article p:first-of-type:first-letter {
margin: 0 auto;
}

/** CLEARFIX HACK:;
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
* contenteditable attribute is included anywhere else in the document.
* Otherwise it causes space to appear at the top and bottom of elements
* that are clearfixed.
* 2. The use of `table` rather than `block` is only necessary if using
* `:before` to contain the top-margins of child elements.
*/
.cf:before,
.cf:after {
content: " "; /* 1 */
display: table; /* 2 */
}

.cf:after {
clear: both;
}

/**
* For IE 6/7 only
* Include this rule to trigger hasLayout and contain floats.
*/
.cf {
*zoom: 1;
}

@@ -1,90 +1,154 @@
<!DOCTYPE html>
<html lang="en-us">

<head>
<meta charset="utf-8">
<title>Sartre’s List</title>
<link href='http://fonts.googleapis.com/css?family=Lato:300,700,300italic,700italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/main.css">
<!-- <link rel="stylesheet" href="css/main_inline_block_solution.css"> -->
<meta charset="utf-8">
<title>Sartre’s List</title>

<link href='http://fonts.googleapis.com/css?family=Lato:300,700,300italic,700italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/main_inline_block_solution.css">
</head>

<body>
<div class="wrapper">
<header>
<h1><a href="index.html">Sartre’s List</a></h1>
<h2>Better-Dressed People</h2>
<nav>
<ul>
<li><a href="#">Women’s</a></li>
<li><a href="#">Men’s</a></li>
<li><a href="#">On the Street</a></li>
<li><a href="#">The Catwalk</a></li>
<li><a href="#">AdWatch</a></li>
<li><a href="#">About</a></li>
</ul>
</nav>
</header>
<main>
<article>
<time>11/12/13</time>
<h2><a href="#">On the Street in Brooklyn</a></h2>
<img src="images/fashion_photo.jpeg" alt="model in brooklyn">
<p>Cray culpa stumptown, flexitarian ex Odd Future do fugiat Wes Anderson proident 3 wolf moon officia bitters small batch. Et consequat do, nulla you probably haven’t heard of them High Life scenester. Vinyl fugiat High Life, kogi do VHS in aliqua lo-fi leggings gentrify Neutra tumblr. Odio vegan PBR, Marfa forage blue bottle try-hard readymade meggings retro delectus Echo Park. Ugh consectetur farm-to-table forage, laboris blue bottle McSweeney’s tattooed excepteur yr. Magna ut Schlitz flexitarian, vinyl craft beer proident yr forage 8-bit ethical sustainable placeat retro. Officia pickled beard, adipisicing gluten-free sint craft beer quis thundercats id 3 wolf moon fashion axe.</p>
<p class="more"><a href="#">Continues...</a></p>
</article>
<article>
<time>11/11/13</time>
<h2><a href="#">Vintage in Vogue</a></h2>
<img src="images/fashion_photo2.jpeg" alt="vintage fashion">
<p>Selfies sunt Tumblr, delectus small batch DIY umami sint. Polaroid chambray selfies McSweeney's Cosby sweater, Pitchfork tattooed assumenda Wes Anderson Blue Bottle twee Carles ennui. Nisi locavore fugiat sapiente salvia aliqua. Shoreditch kogi exercitation fashion axe. Wolf semiotics Pinterest, laboris quis master cleanse tousled small batch street art bespoke fingerstache dreamcatcher ethical labore. Dreamcatcher iPhone typewriter, tote bag four loko fanny pack master cleanse organic PBR reprehenderit actually. Craft beer drinking vinegar wayfarers, pork belly narwhal pariatur polaroid cupidatat in 8-bit distillery anim literally.</p>
<p class="more"><a href="#">Continues...</a></p>
</article>
</main>
<aside>
<section class="module">
<h4>About Us</h4>
<p>Sartre’s List is u salvia, fixie mumblecore ex aesthetic qui minim blog cliche. Retro disrupt keytar PBR, delectus consectetur flexitarian fingerstache selfies nostrud Schlitz. Tempor Wes Anderson banh mi bicycle rights. Eu occaecat Williamsburg yr letterpress, biodiesel plaid tote bag cliche messenger bag lomo bespoke sapiente next level.</p>
<p class="more"><a href="#">More&hellip;</a></p>
</section>
<section class="module ad">
<img src="http://placehold.it/300x250&text=Ad" alt="ad stuff">
</section>
<section class="module">
<h4>Popular Posts</h4>
<ul>
<li><a href="#">10 Things Not to Wear on the Red Carpet</a></li>
<li><a href="#">Valhalla at The Met Gala</a></li>
<li><a href="#">Jeans: To Fray or Not to Fray</a></li>
<li><a href="#">“Trashion” is in This Season</a></li>
<li><a href="#">Back to School in Pencil Skirts</a></li>
<li><a href="#">Fall Season Preview</a></li>
<li><a href="#">Even More Ways to Wrap a Sari!</a></li>
<li><a href="#">Is Steam Punk Here to Stay?</a></li>
<li><a href="#">Neighborhoodie Watch</a></li>
<li><a href="#">Hair Styles of the Damned</a></li>
</ul>
</section>
</aside>
<footer>
<a href="index.html">Home</a>
|
<a href="#">Women’s</a>
|
<a href="#">Men’s</a>
|
<a href="#">On the Street</a>
|
<a href="#">The Catwalk</a>
|
<a href="#">AdWatch</a>
|
<a href="#">About</a>
|
<a href="#">Tips</a>
<p>
<small>&copy; 2013 Valet Industries, Inc.</small>
</p>
</footer>
</div>
<div class="wrapper">
<header>
<h1>
<a href="index.html">Sartre’s List</a>
</h1>
<h2>Better-Dressed People</h2>
<nav>
<ul>
<li>
<a href="#">Women’s</a>
</li>
<li>
<a href="#">Men’s</a>
</li>
<li>
<a href="#">On the Street</a>
</li>
<li>
<a href="#">The Catwalk</a>
</li>
<li>
<a href="#">AdWatch</a>
</li>
<li>
<a href="#">About</a>
</li>
</ul>
</nav>
</header>
<div class="blog-body">
<main>

<article>
<time>11/12/13</time>
<h2>
<a href="#">On the Street in Brooklyn</a>
</h2>
<img src="images/fashion_photo.jpeg" alt="model in brooklyn">
<p>Cray culpa stumptown, flexitarian ex Odd Future do fugiat Wes Anderson proident 3 wolf moon officia bitters small
batch. Et consequat do, nulla you probably haven’t heard of them High Life scenester. Vinyl fugiat High Life,
kogi do VHS in aliqua lo-fi leggings gentrify Neutra tumblr. Odio vegan PBR, Marfa forage blue bottle try-hard
readymade meggings retro delectus Echo Park. Ugh consectetur farm-to-table forage, laboris blue bottle McSweeney’s
tattooed excepteur yr. Magna ut Schlitz flexitarian, vinyl craft beer proident yr forage 8-bit ethical sustainable
placeat retro. Officia pickled beard, adipisicing gluten-free sint craft beer quis thundercats id 3 wolf moon
fashion axe.</p>
<p class="more">
<a href="#">Continues...</a>
</p>
</article>
<article>
<time>11/11/13</time>
<h2>
<a href="#">Vintage in Vogue</a>
</h2>
<img src="images/fashion_photo2.jpeg" alt="vintage fashion">
<p>Selfies sunt Tumblr, delectus small batch DIY umami sint. Polaroid chambray selfies McSweeney's Cosby sweater,
Pitchfork tattooed assumenda Wes Anderson Blue Bottle twee Carles ennui. Nisi locavore fugiat sapiente salvia
aliqua. Shoreditch kogi exercitation fashion axe. Wolf semiotics Pinterest, laboris quis master cleanse tousled
small batch street art bespoke fingerstache dreamcatcher ethical labore. Dreamcatcher iPhone typewriter, tote
bag four loko fanny pack master cleanse organic PBR reprehenderit actually. Craft beer drinking vinegar wayfarers,
pork belly narwhal pariatur polaroid cupidatat in 8-bit distillery anim literally.</p>
<p class="more">
<a href="#">Continues...</a>
</p>
</article>
</main>
<aside>
<section class="module">
<h4>About Us</h4>
<p>Sartre’s List is u salvia, fixie mumblecore ex aesthetic qui minim blog cliche. Retro disrupt keytar PBR, delectus
consectetur flexitarian fingerstache selfies nostrud Schlitz. Tempor Wes Anderson banh mi bicycle rights. Eu
occaecat Williamsburg yr letterpress, biodiesel plaid tote bag cliche messenger bag lomo bespoke sapiente next
level.</p>
<p class="more">
<a href="#">More&hellip;</a>
</p>
</section>
<section class="module ad">
<img src="http://placehold.it/300x250&text=Ad" alt="ad stuff">
</section>
<section class="module">
<h4>Popular Posts</h4>
<ul>
<li>
<a href="#">10 Things Not to Wear on the Red Carpet</a>
</li>
<li>
<a href="#">Valhalla at The Met Gala</a>
</li>
<li>
<a href="#">Jeans: To Fray or Not to Fray</a>
</li>
<li>
<a href="#">“Trashion” is in This Season</a>
</li>
<li>
<a href="#">Back to School in Pencil Skirts</a>
</li>
<li>
<a href="#">Fall Season Preview</a>
</li>
<li>
<a href="#">Even More Ways to Wrap a Sari!</a>
</li>
<li>
<a href="#">Is Steam Punk Here to Stay?</a>
</li>
<li>
<a href="#">Neighborhoodie Watch</a>
</li>
<li>
<a href="#">Hair Styles of the Damned</a>
</li>
</ul>
</section>
</aside>
</div>
<footer>
<a href="index.html">Home</a>
|
<a href="#">Women’s</a>
|
<a href="#">Men’s</a>
|
<a href="#">On the Street</a>
|
<a href="#">The Catwalk</a>
|
<a href="#">AdWatch</a>
|
<a href="#">About</a>
|
<a href="#">Tips</a>
<p>
<small>&copy; 2013 Valet Industries, Inc.</small>
</p>
</footer>
</div>
</body>

</html>

0 comments on commit 24ce9e0

Please sign in to comment.