Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

Save Automatically?

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

              
                	<header id="header" style="position:fixed">
		<a href="#"><img id="header-img" src="http://clipart-library.com/images/LcdoxdMni.png" width="50px;"></a>
		<nav id="nav-bar">
			<li><a class="nav-link" href="#features">Cats</a></li>
			<li><a class="nav-link" href="#reviews">Vidéos</a></li>
			<li><a class="nav-link" href="#contact">Sign In</a></li>
		</nav>
	</header>


	<section class="hero">
		<div class="background-image" style="background-image: url('https://images3.alphacoders.com/235/235575.jpg');"></div>
		<h1 id="title">Rent a Hug Cat</h1>
		<p id="description" style="font-size:1.4em;">Cats are Awesome, Hugs are Awesome <br> So you have to try !!</p>
	</section>

	

	<section class="features" id="features">
		<h3 class="title">The Cats</h3>
		<hr class="pink">

		<ul class="grid">
			<li>
				<img src="https://images3.alphacoders.com/916/thumb-1920-91659.jpg" class="center-block img-responsive" width="200px;">
				<h4>Melomaniac Cat</h4>
				<p>Choose him if you like pop-rock songs ! </p>
			</li>
			<li>
				<img src="https://images.alphacoders.com/206/thumb-1920-20681.jpg" class="center-block img-responsive" width="195px;">
				<h4>Clown Cat</h4>
				<p>You are sad, you want some fun !?</p>
			</li>
			<li>
				<img src="https://images3.alphacoders.com/116/thumb-1920-116827.jpg" class="center-block img-responsive" width="232px;">
				<h4>Snow Cat</h4>
				<p>You love skiing and cat?</p>
			</li>
		</ul>
	</section>

	<section class="reviews" id="reviews">
		<h3 class="title" style="color:white;">Look at this Cats</h3>
		<iframe id="video" class="embed-responsive-item" width="560" height="315" src="https://www.youtube.com/embed/agi4geKb8v8" frameborder="0" allowfullscreen></iframe>
	</section>



	<section class="contact" id="contact">
		<h3 class="title">Sign In</h3>
		<p>You want Cat's hug or simply more informations?</p>
		<hr>

		<form id="form" action="https://www.freecodecamp.com/email-submit">
			<input name="email" id="email" type="email" placeholder="Enter your email" required>
			<input id="submit" type="submit" value="Get Started" class="btn" style="cursor:pointer">
		</form>
    
	</section>

	<footer>
		<ul>
			<li><a href="https://twitter.com/julie_alary?lang=fr"><i class="fa fa-twitter-square"></i></a></li>
			<li><a href="https://www.facebook.com/JulieAlaryWebDev/"><i class="fa fa-facebook-square"></i></a></li>
		</ul>
		<p>Made with <i class="fa fa-heart" aria-hidden="true" style="color:deeppink"></i>  by <a href="https://juliealary.github.io/" target="_blank">Julie Alary</a></p>
	</footer>


              
            
!

CSS

              
                /*-------------
 	General
-------------*/
#submit:hover {
  background-color:deeppink;
  color:white;
}
*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Montserrat', sans-serif;

}

html{
	font: normal 16px sans-serif;
	color: #555;
}

iframe {
    max-width: 560px;
    width: 100%;
  }

ul, nav{
	list-style: none;
	color:deeppink;;
}

a{
	text-decoration: none;
	color: inherit;
	cursor: pointer;

	opacity: 0.9;
}

a:hover{
	opacity: 1;
}

a.btn{
	color: #fff;
	border-radius: 4px;
	text-transform: uppercase;
	background-color: #2196F3;
	font-weight: 800;
	text-align: center;
}

hr.pink{
	width: 150px;
	height: 2px;
	background-color: deeppink;
	border: 0;
	margin-bottom: 80px;
}


section{
	display: flex;
	flex-direction: column;
	align-items: center;

	padding: 125px 100px;
}

@media (max-width: 1000px){

	section{
		padding: 100px 50px;
	}

}

@media (max-width: 600px){

	section{
		padding: 80px 30px;
	}

}

section h3.title{
	color: #414a4f;
	text-transform: capitalize; 
	font: bold 32px 'Open Sans', sans-serif;
	margin-bottom: 35px;
	text-align: center;
}

section p{
	max-width: 800px;
	text-align: center;
	margin-bottom: 35px;
	padding: 0 20px;
	line-height: 2;
}

ul.grid{
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}


/*-------------
 	Header
-------------*/

header{
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5px 100px 0;
	background-color: deeppink;
}

header h2{
	font-family: 'Quicksand', sans-serif;
}

header nav{
	display: flex;
}

header nav li{
	margin: 0 15px;
	color: white;
}

header nav li:first-child{
	margin-left: 0;	
}

header nav li:last-child{
	margin-right: 0;	
}



@media (max-width: 1000px){
	header{
		padding: 20px 50px;
	}
}


@media (max-width: 700px){
	header{
		flex-direction: column;		
	}

	header h2{
		margin-bottom: 15px;
	}
}



/*----------------
 	Hero Section
----------------*/

.hero{
	position: relative;
	justify-content: center;
	min-height: 100vh;
	color: deeppink;
	text-align: center;
}

.hero .background-image{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	z-index: -1;
}

.hero .background-image:after{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.75;
}

.hero h1{
	font: bold 60px 'Open Sans', sans-serif;
	margin-bottom: 15px;
}

.hero h3{
	font: normal 28px 'Open Sans', sans-serif;
	margin-bottom: 40px;
}

.hero a.btn{
	padding: 20px 46px;
}

@media (max-width: 800px){

	.hero{
		min-height: 600px;
	}

	.hero h1{
		font-size: 48px;
	}

	.hero h3{
		font-size: 24px;
	}

	.hero a.btn{
		padding: 15px 40px;
	}

}

/*----------------------
 	Features Section
----------------------*/

.features{
	background-color: white;
}

.features .grid li{
	padding: 0 30px;
	flex-basis: 33%;
	text-align: center;
}

.features .grid li i{
    font-size: 50px;
    margin-bottom: 25px;
}

.features .grid li h4{
    font-size: 20px;
    margin-bottom: 25px;
	color: black;
}

.features .grid li p{
    margin: 0;
	color: darkgrey;

}

@media (max-width: 1000px){

	.features .grid li{
		flex-basis: 70%;
		margin-bottom: 65px;
	}

	.features .grid li:last-child{
		margin-bottom: 0;
	}

}


@media (max-width: 600px){

	.features .grid li{
		flex-basis: 100%;
	}

}


/*---------------------
 	Contact Section
---------------------*/

.contact{
	background-color: lightgrey;
}

.contact form{
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;

	max-width: 800px;
	width: 80%;
}

.contact form input{
	padding: 15px;
	flex: 1;
	margin-right: 30px;
	font-size: 18px;
	color: #555;
}

.contact form .btn{
	padding: 18px 42px;
}


@media (max-width: 800px){

	.contact form input{
		flex-basis: 100%;
		margin: 0 0 20px 0;
	}

}
/*--------------------
 	Reviews Section
--------------------*/

.reviews{
	background-color: deeppink;
}

.reviews .quote{
	text-align: center;
	width: 80%;
	font-size: 22px;
	font-weight: 300;
	line-height: 1.5;
	margin-bottom: 20px;
	padding: 0;
}

.reviews .author{
	font-size: 18px;
	margin-bottom: 50px;
}

.reviews .author:last-child{
	margin-bottom: 0;
}

@media (max-width: 1000px){

	.reviews .quote{
		font-size: 20px;
	}

	.reviews .author{
		font-size: 16px;
	}

}




/*-------------
 	Footer
-------------*/

footer{
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	color: #fff;
	background-color: white;
	padding: 20px 0;
}

footer ul{
	display: flex;
	margin-bottom: 25px;
	font-size: 32px;
}

footer ul li{
	margin: 0 8px;	
}

footer ul li:first-child{
	margin-left: 0;	
}

footer ul li:last-child{
	margin-right: 0;	
}

footer p{
	text-transform: uppercase;
	font-size: 14px;
	color: black;
	margin-bottom: 10px;
}

footer p a{
	color: black;
}

@media (max-width: 700px){

	footer{
		padding: 80px 15px;
	}

}


/* -- Demo ads -- */

@media (max-width: 1200px) {
	#bsaHolder{ display:none;}
}
              
            
!

JS

              
                $('a[href^="#contact"]').click(function() {
  var id = $(this).attr("href");
  var offset = $(id).offset().top
  $('html, body').animate({
    scrollTop: offset
  }, 'slow');
  return false;
});
$('a[href^="#reviews"]').click(function() {
  var id = $(this).attr("href");
  var offset = $(id).offset().top
  $('html, body').animate({
    scrollTop: offset
  }, 'slow');
  return false;
});
$('a[href^="#features"]').click(function() {
  var id = $(this).attr("href");
  var offset = $(id).offset().top
  $('html, body').animate({
    scrollTop: offset
  }, 'slow');
  return false;
});


              
            
!
999px

Console