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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Forhåndsbestill</title>

	<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
	<link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet">
  <link rel="stylesheet" href="css/styles.css">

</head>

<body>

	<header>

	</header>

	<section class="hero">
    <h1>Pre order!</h1>
<ul class="grid">
      <li class="listpadding">
      	<img src="https://s22.postimg.cc/hycm6o9xd/sun2.png" alt="book">
      </li>
    <li>
		<h3>Pre order:</h3>
<p></p>
    <ul class="bulletlist">
      <li>A</li>
      <li>B</li>
      <li>C</li>
    </ul>
  </li>
  </ul>
	</section>


<section class="cta">
  <ul class="grid">
    <li><a href="#" class="btn">Opt1</a></li>
    <li>eller</li>
  	<li><a href="#" class="btn btn1">Opt2</a></li>
    </ul>
  </section>

	<section class="bok-innhold">
		<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id felis et ipsum bibendum ultrices. Morbi vitae pulvinar velit. Sed aliquam dictum sapien, id sagittis augue malesuada eu.</p>
		<hr>

		<ul class="grid">
			<li class="medium" style="background-image: url(assets/img/coast.jpg);"></li>
			<li class="medium" style="background-image: url(assets/img/island.jpg);"></li>
		</ul>
	</section>


	<section class="kapitler">
		<h3 class="title">You'll get:</h3>
		<p></p>
    <ul class="bulletlist">
      <li>a</li>
      <li>b</li>
      <li>c</li>
      </ul>
      <ul class="bulletlist">
        <li>x</li>
        <li>y</li>
        <li>z</li>
        </ul>
		<hr>

	</section>


	<section class="bestillnaa">
		<h3 class="title">Order now:</h3>
    <ul class="grid">
          <li class="listpadding">
          	<img src="https://s22.postimg.cc/hycm6o9xd/sun2.png" alt="book">
          </li>
        <li>
    		<h3>Order today and get:</h3>
    <p></p>
        <ul class="bulletlist">
          <li>d</li>
          <li>e</li>
          <li>f</li>
        </ul>
        <p>Also:</p>
        <ul class="bulletlist">
          <li>g</li>
          <li>h</li>
        </ul>
      </li>
      </ul>
		<hr>
	</section>


</body>

</html>

              
            
!

CSS

              
                /*-------------
 	General
-------------*/

*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
  display: flex;
	flex-direction: column;
  justify-content: center;
  background-color: darkblue;   
  margin: 0;
}

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

ul, nav{
	list-style: none;
}

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: 600;
	text-align: center;
}

hr{
	width: 150px;
	height: 2px;
	background-color: #e64c4c;
	border: 0;
	margin-bottom: 80px;
}

section{
	display: flex;
	flex-direction: column;
	align-items: center;
max-width: 1000px;     
	padding: 80px 200px;
}

@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: flex-end;
	align-items: center;
}

ul.bulletlist{
	list-style: circle;
	text-align: left;
}

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

.hero{
	position: relative;
	justify-content: center;
	min-height: 10vh;
text-align: center;
background-color: #fff;

}

.hero h1{
	font: bold 40px 'Quicksand', sans-serif;
	margin-bottom: 15px;
}

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

.hero ul{
	text-align: left;
}

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

.hero li.listpadding{
	padding-right: 100px;
}

@media (max-width: 800px){

	.hero{
		min-height: 600px;
	}

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

}


/*----------------
 	CTA Section
----------------*/

.cta{
	position: relative;
	padding: 20px 200px;
	color: #fff;
	text-align: center;
	background-color: #282828;
	justify-content: flex-end;
	align-items: flex-end;
	align-content: flex-end;

}

.cta a.btn{
	padding: 20px 16px;
	color: #000000;
	background-color: #f3eded;

}

.cta a.btn.btn1{
	background-color: #e64c4c;
}

.cta .grid ul{

}

.cta .grid li{
padding: 10px;
	}

}


/*--------------------
 	Bok innhold section
---------------------*/

.bok-innhold{
		background-color: #000000;
}

.bok-innhold .grid li{
	padding: 20px;
	height: 350px;
	border-radius: 3px;

	background-clip: content-box;
	background-size: cover;
	background-position: center;
	background-color: #333;
}

.bok-innhold .grid li.small{
	flex-basis: 40%;
	align-self: center;
}

.bok-innhold .grid li.medium{
	flex-basis: 50%;
}

.bok-innhold .grid li.large{
	flex-basis: 60%;
}


@media (max-width: 800px){

	.bok-innhold .grid li.small,
	.bok-innhold .grid li.medium,
	.bok-innhold .grid li.large{
		flex-basis: 100%;
	}

}



/*----------------------
 	Kapitler section
----------------------*/

.kapitler{
		background-color: #e64c4c;
}

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

.kapitler .grid li i{
    font-size: 50px;
    color: #2196F3;
    margin-bottom: 25px;
}

.kapitler .grid li h4{
	color: #555;
    font-size: 20px;
    margin-bottom: 25px;
}

.kapitler .grid li p{
    margin: 0;
}

@media (max-width: 1000px){

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

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

}


@media (max-width: 600px){

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

}


/*---------------------
 	Bestill Nå section
---------------------*/

.bestillnaa{
	background-color: #f7f7f7;
}

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

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

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

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

.bestillnaa li.listpadding{
	padding-right: 100px;
}

@media (max-width: 800px){

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

}

              
            
!

JS

              
                
              
            
!
999px

Console