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

              
                
    
  <div class="wrapper">
<div class="home-hero">
  <div class="feature">
    <h3>The Eiffel Tower</h3>
    <p>Visit the beautiful attraction in center Paris</p>
  </div>
  <div class="special">
    <h3>Paris from the skies</h3>
    <p>The best way to see all of Paris, right from the top</p>

  </div>
  <div class="amazing">
    <h3>Mona Lisa you say?</h3>
    <p>Come to The Louvre to see historic art</p>
  </div>
  <div class="news">
    <h3>Best place for a picnic?</h3>
    <p>Sit along the beautiful gardens on looking the Eiffel Tower </p>
   
    

  </div>
    <div class="photos"><h3>La Défense</h3>
    <p>The business district of Paris</p></div>
  <div class="cta"><p>Stay over night in one of the hundreds of hotels in central Paris </p>
  </div>
  
 

</div>
</div>
    
              
            
!

CSS

              
                body {
  background-color: #efefef;  
font-family: 'Montserrat';
}

h3 {
  margin: 0;
}

h3+p {
  margin-top: 0;
}



.wrapper {
  width: 90%;
  max-width: 940px;
  margin: 20px auto;
  background-color: #fff;
}

.home-hero {
  display: grid;
  grid-gap: 1px;
  grid-auto-rows: minmax(150px, auto);
}

.home-hero > * {
  padding: 10px;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #333;
  color: #fff;
}

.feature {
  background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.2)), url(images/1.jpg);
  background-position: bottom left;
  color: #fff;
}

.photos {
  background-image:linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.9)), url(images/2.jpg); 
  color: #fff;
}

.news {
  background-image: linear-gradient(rgba(0,0,0,5), rgba(0,0,0,0.0)), url(images/3.jpg); 
  color: #fff;
}

.special {
  background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.9)), url(images/4.jpg); 
  color: #fff;
  display: flex;
  flex-direction: column;
}

.special h3,
.amazing h3{
  margin-top: auto;
}

.amazing {
  background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.9)), url(images/5.jpg); 
  color: #fff;
  display: flex;
  flex-direction: column;
}

.cta {
  background-image: url(images/6.jpg);
  color: #fff;
  display: flex;
  flex-direction: column;
}

a.spam-button:link {
  border: 1px solid #ccc;
  border-radius: 3px;
  text-decoration: none;
  background-color: #fff;
  color: #333;
  display: block;
  padding: 5px;
  margin: auto auto 20px;
  width: 90%;
  text-align: center;
}



.landing{
    
    text-align: center;
    margin-top: 20px;
    
}

.landing h1{
    
    font-size: 40px;
    margin-top: 30px;
    color: #446CB3;
}

.landing h3{
    
    color: #446CB3;
}

.landing p{
    
    color: #446CB3;
    width: 70%;
    margin: 20px auto
}

footer{
    
    margin-top: 40px;
    background-color: #446CB3;
    width: 100%;
    height: 70px;
    
    
}

footer a{
    
    color: white;
    text-decoration: underline;
    cursor: pointer;
    font-size: 20px;
    text-align: center;
    margin: 0 auto;
    padding: 20px;
}
@media (min-width: 500px) {
  .home-hero {
    grid-template-columns: 1fr 1fr;
  }
  
  .feature {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }
  
  .special {
    grid-column: 1;
    grid-row: 3 / 6;
  }
  .amazing {
    grid-column: 1;
    grid-row: 6;
  }
  .cta {
    grid-column: 2;
    grid-row: 5 / 7;
  }
}

@media (min-width: 800px) {
   .home-hero {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: minmax(150px, auto) minmax(150px, auto);
    grid-auto-rows: minmax(100px, auto);
  }
  .feature {
    grid-column: 1 ;
    grid-row: 1 / 6;
  }
  
  .special {
    grid-column: 2;
    grid-row: 1 / 4;
  }
  .amazing {
    grid-column: 2;
    grid-row: 4 / 6;
  }
  .cta {
    grid-column: 3;
    grid-row: 3 / 6;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console