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

              
                <div class="banner" style="background-image: ;">
  <img class="banner__img" src="http://jpetit.rickspanjers.nl/images/banner/banner_nederland.jpg" alt="">
  <div class="banner__item">
    <div class="banner__title">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Eius officia quia explicabo delectus velit deleniti rerum nemo odio. Odit pe odio praesentium blanditiis alias ducimus, sit officiis voluptatem autem? A atque temporibus quis error unde cupiditate
      iusto maxime laudantium, nihil optio dolorum natus mollitia obcaecati, dicta, ab reprehenderit voluptate voluptatibus. Lorem ipsum dolor sit amet consectetur adipisicing elit. Accusamus maxime amet consequuntur sint nostrum. Distinctio autem pariatur,
      quam sit rerum, vel alias temporibus sed modi, blanditiis excepturi! Illum sed, deleniti esse alias aliquid exercitationem dolores rem veniam culpa voluptates. Dolorum dignissimos praesentium sapiente consectetur a similique libero nemo eos expedita
      incidunt consequatur aspernatur mollitia, qui reprehenderit sed possimus at in totam! Odit illo, perferendis sed cum, aut, excepturi est laborum iusto sapiente nihil nam dolor fuga! Dolores sed accusantium veniam exercitationem. Vitae exercitationem
      officia ipsa porro, rem eius repellendus fugit ex a, consectetur facilis tempore, aliquam omnis eum dolorem hic?</div>
    <a href="/" class="banner__button">кнопка</a>
  </div>

</div>
<div class="banner clearfix " style="background-image: url(http://jpetit.rickspanjers.nl/images/banner/banner_nederland.jpg);">
  <div class="banner__item">
    <div class="banner__title">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Eius officia quia explicabo delectus velit deleniti rerum nemo odio. Odit perspiciatis aspernatur, quo officiis corporis et, sapiente officia asperiores tenetur, ducimus possimus explicabo
      unde id. Numquam porro esse cum. Commodi?</div>
    <a href="/" class="banner__button">кнопка</a>
  </div>

</div>
              
            
!

CSS

              
                .banner {
  position: relative;
  margin-bottom: 10px;
  min-height: 300px;
  overflow: hidden;
}

.banner__img {
  position: absolute;
  z-index: -1;
  object-fit: cover;
  height: 100%;
}
.banner__item {
  padding: 50px;
}
.banner__title {
  font-family: "Open Sans", sans-serif;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.banner__button {
  display: inline-block;
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 1em 5em;
  border: 2px solid #fff;
  transition: all 0.218s ease 0s;
}


              
            
!

JS

              
                
              
            
!
999px

Console