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

              
                <head>
  <link href='https://fonts.googleapis.com/css?family=PT+Sans:700|Roboto:400,700' rel='stylesheet' type='text/css'>
</head>
<body>
  <div class="container">
    <div class="inner-container">
      <div class="left-section">
        <h1 class="left-section-text">
          NEW <br />YORK
        </h1>
        <div class="left-section-bottom">
          <p class="left-section-bottom-text">
            #NewYork
            <span class="left-section-bottom-text-space">
              #NeverBeen
            </span>
            <span class="left-section-bottom-text-space">
              #BigApple
            </span>
          </p>
        </div>
      </div>
      <div class="right-section">
        <h2 class="right-section-header">
          Statue of Liberty
        </h2>
        <p class="right-section-likes">
          3.2 million like this
        </p>
        <p class="right-section-text">
          "Ut in dapibus metus, eu blandit enim. Aenean sollicitudin condimentum condimentum. Vivamus gravida hendrerit mi ut ornare. Ut pretium neque id porta congue. Morbi ac arcu lacinia, pulvinar massa vitae, ornare neque. Donec et purus erat. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aliquam fermentum tortor a felis dapibus suscipit. Aliquam erat volutpat."
        </p>
        <!-- Redo this section as flex -->
        <div class="right-section-bottom">
          <div class="right-section-img-one right-section-bottom-flex"></div>
          <div class="right-section-img-two right-section-bottom-flex"></div>
          <div class="right-section-img-three right-section-bottom-flex"></div>
          <div class="right-section-img-four right-section-bottom-flex">
            <h3 class="right-section-img-four-text">
              +15
            </h3>
          </div>
        </div>
      </div>
    </div>
  </div>
</body>
              
            
!

CSS

              
                *{
		margin: 0;
		padding: 0;
	}
	body{
		background-color: #333;
	}
	.container{
		display: relative;
		width: 1050px;
		height: 700px;
		background-image:
		linear-gradient(
			rgba(0, 0, 0, 0.5),
			rgba(0, 0, 0, 0.5)
			),
		url(http://www.newyorker.com/wp-content/uploads/2015/12/Veix-Goodbye-New-York-Color-1200.jpg);
		background-position: center top;
		margin: 0 auto;
		margin-top: 50px;
		padding-top: 104px;
		-webkit-box-shadow: -2px 1px 37px 0px rgba(0,0,0,0.75);
		-moz-box-shadow: -2px 1px 37px 0px rgba(0,0,0,0.75);
		box-shadow: -2px 1px 37px 0px rgba(0,0,0,0.75);
	}
	.inner-container{
		display: absolute;
		width: 80%;
		height: 85%;
		margin-left: auto;
		margin-right: auto;
		border-radius: 20px;
		background-image:
		linear-gradient(
			rgba(0, 0, 0, 0),
			rgba(0, 0, 0, 0)
			),
		url(http://www.newyorker.com/wp-content/uploads/2015/12/Veix-Goodbye-New-York-Color-1200.jpg);
		background-position: 50% 50%;
	}

	.left-section{
		width: 55%;
		height: 100%;
		float: left;
	}
	.left-section-text{
		font-family: 'PT Sans';
		font-size: 86px;
		color: #efefef;
		position: relative;
		margin-top: 250px;
		margin-left: 50px;
		letter-spacing: 5px;
	}
	.left-section-bottom{
		height: 78px;
		width: 90%;
		float: right;
		position: relative;
		margin-top: 50px;
		border-top: 2px solid #efefef;
	}
	.left-section-bottom-text{
		margin-left:20px;
		margin-top:25px;
		color: #E4F1FE;
		font-family: 'Roboto';
		font-size: 20px;
	}
	.left-section-bottom-text-space{
		margin-left: 20px;
	}
	.right-section{
		width: 45%;
		height: 100%;
		float: right;
		background-color: white;
		border-radius: 0px 20px 20px 0px;
	}
	.right-section-header{
		font-family: 'Roboto';
		font-weight: 700;
		margin-left: 40px;
		margin-top: 50px;
		color: #333;
	}
	.right-section-likes{ 
		font-family: 'Roboto';
		font-weight: 700;
		margin-left: 40px;
		margin-top: 20px;
		color: #3498DB;
	}
	.right-section-text{
		font-family: 'Roboto';
		margin-left: 40px;
		margin-right: 40px;
		margin-top: 30px;
		line-height: 25px;
		color: #333;
	}
	.right-section-bottom{
		width: 100%;
		height: 73px;
		position: relative;
		margin-top: 100px;
		background-color: #efefef;
	}
	.right-section-bottom{
		display: flex;
		flex-flow: row nowrap;
		justify-content: center;
		border-radius: 0 0 20px 0;
	}
	.right-section-bottom-flex{
		width: 25%;
		height: 73px;
		background-color: red;
	}
	.right-section-img-one{
		height: 100%;
		background:linear-gradient(
			rgba(0, 15, 200, 0.5),
			rgba(0, 15, 200, 0.5)
			), url(https://cdn1.hubspot.com/hub/107469/file-56751047.jpg) no-repeat;
		background-position: 50% 0%;
		transition: background-position 1s;
	}
	.right-section-img-one:hover{
		background:linear-gradient(
			rgba(0, 0, 0, 0),
			rgba(0, 0, 0, 0)
			), url(https://cdn1.hubspot.com/hub/107469/file-56751047.jpg) no-repeat ;
		background-position: 50% 30%;
	}
	.right-section-img-two{
		height: 100%;
		background:linear-gradient(
			rgba(0, 15, 200, 0.5),
			rgba(0, 15, 200, 0.5)
			), url(http://study.com/cimages/multimages/16/statue_liberty.jpg) no-repeat;
		background-position: 50% 0%;
		transition: background-position 1s;
	}
	.right-section-img-two:hover{
		background:linear-gradient(
			rgba(0, 0, 0, 0),
			rgba(0, 0, 0, 0)
			), url(http://study.com/cimages/multimages/16/statue_liberty.jpg) no-repeat;
		background-position: 50% 30%;
	}
	.right-section-img-three{
		height: 100%;
		background:linear-gradient(
			rgba(0, 15, 200, 0.5),
			rgba(0, 15, 200, 0.5)
			), url(http://www.servcorp.com/media/8008/enlarge_one-world-trade-center) no-repeat ;
		background-position: 50% 0%;
		transition: background-position 1s;
	}
	.right-section-img-three:hover{
		background:linear-gradient(
			rgba(0, 0, 0, 0),
			rgba(0, 0, 0, 0)
			), url(http://www.servcorp.com/media/8008/enlarge_one-world-trade-center) no-repeat;
		background-position: 50% 25%;
	}
	.right-section-img-four{
		height: 100%;
		background-color: #333;
		padding: 0;
		margin: 0;
		transition: background-color 1s;
		border-radius: 0 0 18px 0;
	}
	.right-section-img-four-text{
		text-align: center;
		font-size: 30px;
		font-family: 'Roboto';
		color: lightgrey;
		margin-top: 20px;
		transition: color .5s;
	}
	.right-section-img-four:hover{
		background-color: lightgrey;
	}
	.right-section-img-four:hover .right-section-img-four-text{
		color: #333;
	}
              
            
!

JS

              
                
              
            
!
999px

Console