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.

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                <div class="main">
  <div class="menu">
  <div class="ribbon"><div class="ribbon-stitches-top"></div><strong class="ribbon-content"><h1>
    <div class="menu-links">
    <a href="#">Главная</a>
      <a href="#">Каталог</a>
      <a href="#">Лицензия</a>
      <a href="#">Купить</a>
    </div>
    </h1></strong><div class="ribbon-stitches-bottom"></div></div>
  </div>
  <div class="content">
    <div class="text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque tempus aliquet efficitur. Duis vitae ligula et ante bibendum rutrum. Morbi scelerisque volutpat rhoncus. Maecenas congue mattis sollicitudin. Vestibulum dignissim, mauris nec eleifend aliquet, ex eros posuere ante, a commodo magna eros vel tortor. Pellentesque gravida lacinia nisl, a pellentesque velit mattis in. Curabitur volutpat enim vitae nisi tempus scelerisque vel et tortor. Praesent sed malesuada lorem. Proin iaculis dolor tortor, et aliquam purus ultricies vitae. Vestibulum non ante sollicitudin nulla finibus condimentum. Proin laoreet facilisis hendrerit. Maecenas suscipit pretium erat sit amet lobortis. Vestibulum facilisis sed augue vitae faucibus.

Duis pharetra ligula sit amet erat tincidunt, at elementum purus luctus. Integer a arcu id ipsum lacinia eleifend. Pellentesque non augue condimentum, ullamcorper velit non, pharetra enim. Aliquam elementum porttitor nisi et ultrices. Phasellus tincidunt ante eget magna tristique, volutpat vehicula quam tempor. Aenean urna leo, sollicitudin ut justo in, lobortis mattis ipsum. Nulla dui augue, gravida sit amet euismod vitae, ullamcorper a felis. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Pellentesque rutrum mattis elit a mattis. Sed mollis posuere erat, non luctus eros luctus vel. Nulla posuere dictum cursus. Maecenas ultricies pellentesque efficitur. Interdum et malesuada fames ac ante ipsum primis in faucibus. In eleifend pharetra justo, eleifend ultrices neque rutrum eu.

Morbi laoreet scelerisque iaculis. Mauris in enim tempus, placerat lorem sit amet, mattis lectus. Nullam tristique, ante eget condimentum malesuada, libero massa varius enim, eget pharetra urna nisl sed neque. Pellentesque pharetra magna libero, posuere euismod mauris pellentesque quis. Curabitur interdum ipsum sit amet magna accumsan, sit amet cursus nibh congue. Suspendisse ac elit nisl. Cras pellentesque lacus volutpat consequat accumsan. Maecenas lectus dolor, consectetur sed nunc ac, facilisis euismod libero. Ut condimentum erat diam, ut tincidunt magna molestie in. Vivamus ut leo dolor. In bibendum at nunc eget maximus. Phasellus arcu augue, consequat nec nulla ut, molestie dignissim augue. Curabitur convallis ligula vel odio bibendum malesuada.

Suspendisse mi sapien, porttitor sed ex a, pellentesque rhoncus nibh. Cras nec purus faucibus, ullamcorper dolor nec, convallis est. In hac habitasse platea dictumst. Morbi eros nisl, luctus sed vestibulum a, volutpat id velit. Duis vel massa massa. Vivamus neque sapien, malesuada vel faucibus eu, congue id est. Nunc sollicitudin tortor sit amet velit efficitur iaculis. Praesent elementum fringilla sapien sit amet faucibus. Aenean finibus et orci vel tempus. Nulla facilisis nisl sit amet diam hendrerit aliquam. Quisque at venenatis ante. Praesent pharetra ipsum sem, sit amet placerat turpis cursus at.

Donec tellus mauris, eleifend vitae scelerisque sit amet, mattis at magna. Nullam at arcu sagittis, accumsan lectus nec, mollis libero. Praesent pellentesque enim fermentum nunc euismod, sed cursus tellus malesuada. Maecenas ultricies porttitor ex. Donec sagittis, urna tristique convallis bibendum, nulla erat bibendum lorem, ut posuere felis diam vel nibh. Fusce eu tellus mollis, ornare dui at, dapibus <leo class=" "></leo> Donec rutrum diam sed lorem gravida viverra. Quisque suscipit nec arcu ac lobortis. Mauris sodales ligula eget fringilla pulvinar. Donec vel lacus tortor.
    </div>
  </div>
    <div class="bottom">Пример 2015</div>
</div>
              
            
!

CSS

              
                body {
  font-family: 'Open Sans', sans-serif;
}
.main {
  padding: 0px;
  margin: 0 auto;
  width: 800px;
}
.menu {
  width: 800px;
  padding: 35px 0px 35px 0px;
}
.content {
  margin-top: 100px;
  width: 800px;
}
.ribbon {
   width: 800px;
   position: absolute;
   text-align: center;
   font-size: 20px!important;
   background: #d64b4b;
   background: -webkit-gradient(linear, left top, left bottom, from(#d64b4b), to(#ab2c2c));
   background: -webkit-linear-gradient(top, #d64b4b, #ab2c2c);
   background: -moz-linear-gradient(top, #d64b4b, #ab2c2c);
   background: -ms-linear-gradient(top, #d64b4b, #ab2c2c);
   background: -o-linear-gradient(top, #d64b4b, #ab2c2c);
   background-image: -ms-linear-gradient(top, #d64b4b 0%, #ab2c2c 100%);
   -webkit-box-shadow: rgba(000,000,000,0.3) 0 1px 1px;
   -moz-box-shadow: rgba(000,000,000,0.3) 0 1px 1px;
   box-shadow: rgba(000,000,000,0.3) 0 1px 1px;
   font-family: 'Helvetica Neue',Helvetica, sans-serif;
   }
.ribbon h1 {
   font-size: 22px!important;
   color: #ffffff;
   text-shadow: #d65c5c 0 1px 0;
   margin:0px;
   padding: 15px 10px;
   }
.ribbon:before, .ribbon:after {
   content: '';
   position: absolute;
   display: block;
   bottom: -1em;
   border: 1.5em solid #c23a3a;
   z-index: -1;
   }
.ribbon:before {
   left: -2em;
   border-right-width: 1.5em;
   border-left-color: transparent;
   -webkit-box-shadow: rgba(000,000,000,0.4) 1px 1px 1px;
   -moz-box-shadow: rgba(000,000,000,0.4) 1px 1px 1px;
   box-shadow: rgba(000,000,000,0.4) 1px 1px 1px;
   }
.ribbon:after {
   right: -2em;
   border-left-width: 1.5em;
   border-right-color: transparent;
   -webkit-box-shadow: rgba(000,000,000,0.4) -1px 1px 1px;
   -moz-box-shadow: rgba(000,000,000,0.4) -1px 1px 1px;
   box-shadow: rgba(000,000,000,0.4) -1px 1px 1px;
   }
.ribbon .ribbon-content:before, .ribbon .ribbon-content:after {
   border-color: #871616 transparent transparent transparent;
   position: absolute;
   display: block;
   border-style: solid;
   bottom: -1em;
   content: '';
   }
.ribbon .ribbon-content:before {
   left: 0;
   border-width: 1em 0 0 1em;
   }
.ribbon .ribbon-content:after {
   right: 0;
   border-width: 1em 1em 0 0;
   }
.ribbon-stitches-top {
   margin-top:2px;
   border-top: 1px dashed rgba(0, 0, 0, 0.2);
   -moz-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
   -webkit-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
   box-shadow: 0px 0px 2px rgba(255, 255, 255, 0.5);
   }
.ribbon-stitches-bottom {
   margin-bottom:2px;
   border-top: 1px dashed rgba(0, 0, 0, 0.2);
   -moz-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
   -webkit-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
   box-shadow: 0px 0px 2px rgba(255, 255, 255, 0.3);
   }
.box {
  width: 200px;
  height: 200px;
  margin: 10px;
  border: 5px solid #CD2626;
  float: left;
}
.shell-box {
  margin: auto;
  width: 690px;
  overflow: hidden;
}
.menu-links a {
  color: white;
  text-decoration: none;
  padding: 0px 10px 0px 10px;
}
.box img {
  width: 200px;
  height: 200px;
}
.bottom {
  text-align: center;
  color: #CD2626;
  font-size: 20px;
  text-decoration: none;
}
.text {
  width: 700px;
  padding: 0px 30px 20px 30px;
  font-size: 25px;
  margin: auto;
  text-align: center;
}
              
            
!

JS

              
                
              
            
!
999px
The Pen is mightier than the sword.

Console