Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <nav class="standard-nav">
	<div class="links">
		<a href="#"><i class="fab fa-facebook-f"></i></a>
		<a href="#"><i class="fab fa-twitter"></i></a>
		<a href="#"><i class="fab fa-pinterest"></i></a>
		<a href="#"><i class="fab fa-instagram"></i></a>
		<a href="#"><i class="fab fa-snapchat"></i></a>
		<a href="#"><i class="fab fa-linkedin-in"></i></a>
	</div>
	<div class="links">
		<a href="#"><i class="fas fa-search"></i></a>
	</div>
</nav>

<section id="home">
	<div class="myrow">
		<div class="mycol">
			<header class="top-intro">
				<h1 class="lead">
					Expensive Skin
				</h1>
				<p>See and read about the art of <span class="accent">tattoo</span></p>
			</header>
		</div>
	</div>
	<section class="hero">
		<div class="myrow">
			<div class="mycol">
				<header>
					<p>
						By Megan Moore
					</p>
					<h1>
						Inked Love
					</h1>
					<a href="#" class="mybtn">Subscribe</a>
				</header>
			</div>
		</div>
	</section>
</section>

<div class="myrow-uneven">
	<div class="mycol-left">
		<div class="myrow">
			<div class="mycol">
				<header class="blog-header">
					<h2>
						Out and About
					</h2>
					<p>Best shops in town,<span class="date">&nbsp;April 2, 2018</span></p>
				</header>
				<img src="https://images.unsplash.com/photo-1517762340357-3a82e505f7c4?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=9814a4cd6efc15605f6a7a26acbf94e5&auto=format&fit=crop&w=2264&q=80" style="width:100%">
				<p><strong>In this post</strong> you'll find all the coolest, hippest and most skilled tattoo shops across the World.Sed mattis nunc id lorem euismod placerat...</p>
				<div class="post-btm-bar">
					<button class="likes"><i class="fas fa-thumbs-up"></i> Like</button>
					<button class="replies">Replies <span class="count">26</span></button>
				</div>
			</div>
		</div>

		<div class="myrow">
			<div class="mycol">
				<header class="blog-header">
					<h2>
						Tattoos and Work
					</h2>
					<p>Stigmas attached to tattoos<span class="date">&nbsp;March 30, 2018</span></p>
				</header>
				<img src="https://images.unsplash.com/photo-1471880332732-86cdafcb1ff4?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=526158b2bdb24d5ce3ed2487c48df058&auto=format&fit=crop&w=2250&q=80" style="width:100%">
				<p><strong>In this post</strong> you'll find all the coolest, hippest and most skilled tattoo shops across the World.Sed mattis nunc id lorem euismod placerat...</p>
				<div class="post-btm-bar">
					<button class="likes"><i class="fas fa-thumbs-up"></i> Like</button>
					<button class="replies">Replies <span class="count">42</span></button>
				</div>
			</div>
		</div>

		<div class="myrow">
			<div class="mycol">
				<header class="blog-header">
					<h2>
						Below the cuff
					</h2>
					<p>Are below the cuff tattoos good<span class="date">&nbsp;March 28, 2018</span></p>
				</header>
				<img src="https://images.unsplash.com/photo-1505545199769-29c6462bf3c6?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=93ea594822d2cdc900df5ab31cc12056&auto=format&fit=crop&w=2250&q=80" style="width:100%">
				<p><strong>In this post</strong> you'll find all the coolest, hippest and most skilled tattoo shops across the World. Sed mattis nunc id lorem euismod placerat...</p>
				<div class="post-btm-bar">
					<button class="likes"><i class="fas fa-thumbs-up"></i> Like</button>
					<button class="replies">Replies <span class="count">120</span></button>
				</div>
			</div>
		</div>

	</div>

	<!-- SIDEBAR -->
	<div class="mycol-right">
		<section class="profile">
			<div class="myrow author">
				<div class="mycol author">
					<img src="https://images.unsplash.com/photo-1500483849987-5a06418e3fb6?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=26677ec5806f174e68d5ac9714974986&auto=format&fit=crop&w=2250&q=80" style="width:100%">
					<div class="abt">
						<h3 class="profile-title">Megan Moore</h3>
						<p>Megan is a lifestyle blogger who loves to write about her passions of tattoos. </p>
					</div>
				</div>
			</div>
		</section>

		<section class="popular-posts">
			<header class="sidebar-header">
				<h2>Popular Posts</h2>
			</header>
			<div class="myrow">
				<div class="mycol p-posts">
					<div class="p-img">
						<img src="https://images.unsplash.com/photo-1454329001438-1752daa90420?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=becd834394b89fc2fccb45a7bc3f525a&auto=format&fit=crop&w=2250&q=80">
					</div>
					<div class="p-text">
						<h5>Adventures</h5>
						<p>Sed mattis nunct...</p>
					</div>
				</div>
			</div>

			<div class="myrow">
				<div class="mycol p-posts">
					<div class="p-img">
						<img src="https://images.unsplash.com/photo-1453814235491-3cfac3999928?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=f05da4077424625439e156f87d204797&auto=format&fit=crop&w=2250&q=80">
					</div>
					<div class="p-text">
						<h5>Art Walks</h5>
						<p>Sed mattis nunc...</p>
					</div>
				</div>
			</div>
			<div class="myrow">
				<div class="mycol p-posts">
					<div class="p-img">
						<img src="https://images.unsplash.com/photo-1519822356-4853be4346a8?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=bdeea149c483827d9e839a10e87403c5&auto=format&fit=crop&w=2251&q=80">
					</div>
					<div class="p-text">
						<h5>Conventions</h5>
						<p>Sed mattis nunc...</p>
					</div>
				</div>
			</div>
			<div class="myrow">
				<div class="mycol p-posts">
					<div class="p-img">
						<img src="https://images.unsplash.com/photo-1469073082817-a29a4270b679?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=abb145dace8683d154f8e0eced31eda7&auto=format&fit=crop&w=2250&q=80">
					</div>
					<div class="p-text">
						<h5>New School</h5>
						<p>Sed mattis nunc...</p>
					</div>
				</div>
			</div>
			<div class="myrow">
				<div class="mycol p-posts">
					<div class="p-img">
						<img src="https://images.unsplash.com/photo-1479767574301-a01c78234a0c?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=f32e2e491210be1d4ad5132b9a0c0bb4&auto=format&fit=crop&w=2250&q=80">
					</div>
					<div class="p-text">
						<h5>Traditional</h5>
						<p>Sed mattis nunc...</p>
					</div>
				</div>
			</div>
		</section>

		<section class="tag-cloud">
			<header class="sidebar-header">
				<h2>Tags</h2>
			</header>
			<div class="myrow">
				<div class="mycol">
					<span class="tag">Art</span>
					<span class="tag">Food</span>
					<span class="tag">Entertainment</span>
					<span class="tag">Machines</span>
					<span class="tag">Ink</span>
					<span class="tag">Clothing</span>
					<span class="tag">Weekends</span>
					<span class="tag">Vacation Spots</span>
					<span class="tag">Cars</span>
					<span class="tag">Tattoos</span>
					<span class="tag">Shops</span>
					<span class="tag">Love</span>
					<span class="tag">Ocean</span>
					<span class="tag">Design</span>
					<span class="tag">Development</span>
					<span class="tag">UX/UI</span>
					<span class="tag">Podcasts</span>
					<span class="tag">Colors</span>
					<span class="tag">Typography</span>
					<span class="tag">Shoes</span>
				</div>
			</div>
		</section>

		<section class="follow">
			<header class="sidebar-header">
				<h2>Follow me</h2>
			</header>
			<div class="myrow">
				<div class="mycol">
					<a href="#"><i class="fab fa-facebook-f"></i></a>
					<a href="#"><i class="fab fa-twitter"></i></a>
					<a href="#"><i class="fab fa-pinterest"></i></a>
					<a href="#"><i class="fab fa-instagram"></i></a>
					<a href="#"><i class="fab fa-snapchat"></i></a>
					<a href="#"><i class="fab fa-linkedin-in"></i></a>
				</div>
			</div>
		</section>

		<section class="subscribe">
			<header class="sidebar-header">
				<h2>Subscribe</h2>
			</header>
			<div class="myrow">
				<div class="mycol">
					<p>Enter your e-mail below and get notified on the latest blog posts.</p>
					<form>
						<input type="email" name="email" value="E-mail">
						<input type="submit">
					</form>
				</div>
			</div>

		</section>

	</div>
</div>

<footer>
	<div class="myrow">
		<div class="mycol">
			<a href="#"><i class="fab fa-facebook-f"></i></a>
			<a href="#"><i class="fab fa-twitter"></i></a>
			<a href="#"><i class="fab fa-pinterest"></i></a>
			<a href="#"><i class="fab fa-instagram"></i></a>
			<a href="#"><i class="fab fa-snapchat"></i></a>
			<a href="#"><i class="fab fa-linkedin-in"></i></a>
		</div>
	</div>
	<div class="myrow">
		<div class="mycol">
			<p>Copy <i class="far fa-copyright"></i> 2018 | made by me <i class="far fa-smile"></i></p>
		</div>
	</div>
</footer>
              
            
!

CSS

              
                /* 
==================================================
Base Styles

font-family: 'Montserrat', sans-serif;
font-family: 'Merriweather Sans', sans-serif;
================================================== 
*/

*,
*:before,
*:after {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

*:focus {
	outline: none;
}

body {
	padding-top: 45px;
	background: #eee;
	font-family: "Montserrat", sans-serif;
	letter-spacing: 0px;
	line-height: 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Merriweather Sans", sans-serif;
	letter-spacing: 1px;
}

ul {
	list-style: none;
}

li {
	display: inline;
}

a {
	text-decoration: none;
	color: #222;
}

.svg-inline--fa {
	font-size: 1.2em;
}

.mybtn {
	background: transparent;
	border: 2px solid #fff;
	color: #fff;
	display: inline-block;
	margin-top: 10px;
	padding: 12px 20px;
	border-radius: 0px;
	text-align: center;
	transition: all 0.35s;
	text-transform: uppercase;
	font-weight: bold;
	letter-spacing: 1px;
}

.mybtn:hover {
	background: #e91e63;
	border: 2px solid #e91e63;
	color: #fff;
}

.myrow-uneven {
	max-width: 1460px;
	margin: 0 auto;
}

/* 
==================================================
Navigation menus
================================================== 
*/

/* **********
STANDARD MENU 
********** */

.standard-nav {
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 9999;
	display: flex;
	justify-content: space-between;
	background: #000;
	padding: 2px;
}

.links {
	padding: 12px 2px;
}

.links a {
	padding: 0px 12px;
	color: #eee;
	transition: all 0.35s;
	display: inline-block;
}

.links a:hover {
	transform: scale(1.1);
	color: #e91e63;
}

.brand {
	color: #eee;
	padding: 12px 15px;
	display: inline-block;
}

/* 
==================================================
Hero
================================================== 
*/

.top-intro {
	text-align: center;
}

.top-intro h1 {
	font-size: 3em;
	line-height: 1.2em;
	text-transform: uppercase;
}

.top-intro p {
	font-size: 1.2em;
}

.accent {
	background: #000;
	color: #fff;
	padding: 5px 10px;
}

#home .myrow {
	margin-bottom: 0;
}

.hero .myrow {
	background: transparent;
}

.hero {
	height: 768px;
	background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
		url("https://images.unsplash.com/photo-1475695752828-6d2b0a83cf8a?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1321&q=80")no-repeat
			center;
	background-size: cover;
	display: flex;
	align-items: center;
	color: #fff;
	padding: 40px;
}

.hero h1 {
	font-size: 5em;
	text-transform: uppercase;
}

.hero p {
	font-size: 2em;
}

/* 
==================================================
Posts
================================================== 
*/

.blog-header {
	text-align: center;
}

.blog-header h2 {
	text-transform: uppercase;
}

.date {
	color: #aaa;
}

.likes,
.replies {
	padding: 10px 15px;
	cursor: pointer;
	transition: all 0.35s;
}

.likes {
	border: 1px solid #b2b2b2;
	background: transparent;
	font-weight: bold;
}

.likes:hover {
	border: 1px solid #000;
	background: #000;
	color: #fff;
}

.replies {
	border: 1px solid #000;
	background: #000;
	color: #fff;
}

.replies:hover {
	border: 1px solid #f1f1f1;
	background: #f1f1f1;
	color: #000;
}

.count {
	background: #e91e63;
	color: #fff;
	padding: 5px;
	margin-left: 15px;
}

.post-btm-bar {
	display: flex;
	justify-content: space-between;
}

/* 
==================================================
Sidebar
================================================== 
*/

.profile .author {
	padding: 0;
}

.abt {
	padding: 10px 20px;
	background: #000;
	color: #fff;
	margin-top: -7px;
}

.profile-title {
}

/************
POPULAR POSTS
************/

.sidebar-header {
	background: #000;
	color: #fff;
	padding: 1px 20px;
}

.p-img img {
	width: 100%;
	height: auto;
}

.p-img {
	margin-right: 10px;
	max-width: 100px;
}

.p-posts {
	display: flex;
	align-items: center;
	transition: all 0.35s;
	cursor: pointer;
}

.popular-posts .myrow {
	margin-bottom: 0;
	border-bottom: 1px solid #eee;
}

.p-posts:hover {
	background: #f6f6f6 !important;
	color: #000;
}

.popular-posts .myrow:last-child {
	margin-bottom: 20px;
	border: none;
}

.p-text h5 {
	line-height: 0;
}

/************
TAG CLOUD
************/

.tag {
	display: inline-block;
	background: #eee;
	padding: 5px 10px;
	font-size: 0.85em;
	margin-bottom: 5px;
	cursor: pointer;
	transition: all 0.35s;
}

.tag:hover {
	background: #000;
	color: #fff;
}

/************
SOCIAL FOLLOW
************/

.follow a {
	transition: all 0.35s;
	display: inline-block;
	font-size: 1.2em;
	padding: 2px;
}

.follow a:hover {
	transform: scale(1.1);
	color: #e91e63;
}

/************
SUBSCRIBE
************/

.subscribe form input[type="submit"] {
	background: #e91e63;
	border: none;
	border-radius: 0px;
	width: 100%;
	padding: 10px;
	color: #fff;
	transition: all 0.35s;
	cursor: pointer;
	 -webkit-appearance: none;
}

.subscribe form input[type="submit"]:hover {
	opacity: 0.5;
}

.subscribe form input[type="email"] {
	width: 100%;
	margin-bottom: 10px;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 0px;
	 -webkit-appearance: none;
}

/* 
==================================================
Footer
================================================== 
*/

footer {
	text-align: center;
	background: #000;
	color: #eee;
	padding: 5px;
}

footer .myrow,
footer .mycol {
	margin-bottom: 0;
	padding-bottom: 0;
}

footer a {
	display: inline-block;
	padding-right: 10px;
	color: #eee;
	transition: all 0.35s;
}

footer a:hover {
	transform: scale(1.05);
	color: #e91e63;
}

footer p {
	font-size: 0.75em;
	color: #aaa;
	text-transform: uppercase;
}

footer .svg-inline--fa {
	font-size: 1em;
}

/* 
==================================================
Grid Layout
================================================== 
*/

.myrow {
	display: flex;
	margin: 0 0 30px 0;
}

.mycol {
	padding: 20px;
}

.myrow-uneven .mycol {
	background: #fff;
	/* padding: 20px; */
}

.myrow-uneven {
	padding: 30px;
}

.mycol-left {
	margin-right: 15px;
}

.mycol-right {
	margin-left: 15px;
}

.myrow .mycol {
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
}

.myrow-halves,
.myrow-thirds,
.myrow-fourths,
.myrow-uneven {
	display: flex;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
}

.myrow-uneven .mycol-left {
	width: 70%;
}

.myrow-uneven .mycol-right {
	width: 30%;
}

.myrow-halves .mycol {
	width: 49%;
	margin: 0 auto;
}

.myrow-thirds .mycol {
	width: 32%;
}

.myrow-fourths .mycol {
	width: 24%;
}

/* 
==================================================
Media Queries
================================================== 
*/

@media (max-width: 970px) {
	.myrow,
	.myrow-halves,
	.myrow-thirds,
	.myrow-fourths,
	.myrow-uneven {
		display: block;
	}

	.myrow .mycol,
	.myrow-halves .mycol,
	.myrow-thirds .mycol,
	.myrow-fourths .mycol,
	.myrow-uneven .mycol-left,
	.myrow-uneven .mycol-right {
		width: 100%;
		margin: 0 0 10px 0;
	}
}

@media (max-width: 650px) {
	.hero h1 {
	font-size: 4em;
	text-transform: uppercase;
}

.hero p {
	font-size: 1.5em;
}
}

@media (max-width: 550px) {
	.hero h1 {
	font-size: 4em;
	text-transform: uppercase;
		line-height: 1.2em;
}

.hero p {
	font-size: 1.5em;
	line-height: 0;
}
}

@media(max-width: 480px) {
	.top-intro h1 {
		font-size: 2.5em;
	}
}



              
            
!

JS

              
                /* 
=======================================
Mobile menu functionality
=======================================
*/

$(".open-burger").on("click", function() {
		$("#myNav").css("width", "100%");
	});

$(".close-burger").on("click", function() {
		$("#myNav").css("width", "0%");
	});




/* 
=======================================
Scroll to anchor id's
=======================================
*/

// Select all links with hashes

$('a[href*="#"]')
	// Remove links that don't actually link to anything
	.not('[href="#"]')
	.not('[href="#0"]')
	.click(function(event) {
		// On-page links
		if (
			location.pathname.replace(/^\//, "") == this.pathname.replace(/^\//, "") &&
			location.hostname == this.hostname
		) {
			// Figure out element to scroll to
			var target = $(this.hash);
			target = target.length ? target : $("[name=" + this.hash.slice(1) + "]");
			// Does a scroll target exist?
			if (target.length) {
				// Only prevent default if animation is actually gonna happen
				event.preventDefault();
				$("html, body").animate(
					{
						scrollTop: target.offset().top
					},
					1000,
					function() {
						// Callback after animation
						// Must change focus!
						var $target = $(target);
						$target.focus();
						if ($target.is(":focus")) {
							// Checking if the target was focused
							return false;
						} else {
							$target.attr("tabindex", "-1"); // Adding tabindex for elements not focusable
							$target.focus(); // Set focus again
						}
					}
				);
			}
		}
	});

              
            
!
999px

Console