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.

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

              
                
<html class="no-js" lang="">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="x-ua-compatible" content="ie=edge">
        <title></title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

        <link rel="manifest" href="site.webmanifest">
        <link rel="apple-touch-icon" href="icon.png">
        <!-- Place favicon.ico in the root directory -->

        <link href="https://fonts.googleapis.com/css?family=Noto+Sans:400,700|Noto+Serif|Playfair+Display" rel="stylesheet">
        <link rel="stylesheet" href="css/bootstrap-grid.min.css">
        <link rel="stylesheet" href="css/main.css">
    </head>
    <body>

      <div class="gallery">
        <div class="container">
          <div class="row no-gutters">
            <div class="gallery-flex col-md-3">
              <img src="img/Layer 192 copy-1.png" alt="">
              <img src="img/Layer 372.png" alt="">
              <img src="img/Layer 192 copy 5-1.png" alt="">
              <div class="gallery-date">
                <span class="gallery-date_number">19</span>
                <span class="gallery-date_month">сентября</span>
              </div>
              <img src="img/Layer 192 copy 8.png" alt="">
              <img src="img/Layer 192 copy 9-1.png" alt="">
              <img src="img/Layer 192 copy 12.png" alt="">
              <img src="img/Layer 192 copy 15-1.png" alt="">
            </div>
            <!-- /.col-md-3 -->
            <div class="gallery-flex col-md-3">
              <img src="img/Layer 192 copy.png" alt="">
              <div class="gallery-date">
                <span class="gallery-date_number">20</span>
                <span class="gallery-date_month">сентября</span>
              </div>
              <img src="img/Layer 192 copy 5.png" alt="">
              <img src="img/Layer 192 copy 7-1.png" alt="">
              <div class="gallery-date">
                <span class="gallery-date_number">18</span>
                <span class="gallery-date_month">сентября</span>
              </div>
              <img src="img/Layer 192 copy 9.png" alt="">
              <div class="gallery-date">
                <span class="gallery-date_number">17</span>
                <span class="gallery-date_month">сентября</span>
              </div>
              <img src="img/Layer 192 copy 15.png" alt="">
            </div>
            <!-- /.col-md-3 -->
            <div class="gallery-flex col-md-3">
              <img src="img/Layer 192 copy 2.png" alt="">
              <img src="img/Layer 192 copy 4.png" alt="">
              <img src="img/Layer 192 copy 6.png" alt="">
              <img src="img/Layer 192 copy 7.png" alt="">
              <img src="img/Layer 192 copy 9-2.png" alt="">
              <img src="img/Layer 192 copy 10.png" alt="">
              <img src="img/Layer 192 copy 14-1.png" alt="">
            </div>
            <!-- /.col-md-3 -->
            <div class="gallery-flex col-md-3">
              <img src="img/Слой 1.png" alt="" class="gallery-oversize">
              <img src="img/Layer 192 copy 16.png" alt="">
              <img src="img/Layer 192 copy 8-1.png" alt="">
              <img src="img/Слой 2.png" alt="" class="gallery-oversize">
              <img src="img/Layer 192 copy 14.png" alt="">
            </div>
            <!-- /.col-md-3 -->
          </div>
          <!-- /.row -->
        <!-- /.container -->
      </div>
      <!-- /.gallery -->



        <!--[if lte IE 9]>
            <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
        <![endif]-->

        <!-- Add your site or application content here -->

        <script src="js/vendor/modernizr-3.5.0.min.js"></script>
        <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
        <script>window.jQuery || document.write('<script src="js/vendor/jquery-3.2.1.min.js"><\/script>')</script>
        <script src="js/plugins.js"></script>
        <script src="js/main.js"></script>

        <!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->
        <script>
            window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;
            ga('create','UA-XXXXX-Y','auto');ga('send','pageview')
        </script>
        <script src="https://www.google-analytics.com/analytics.js" async defer></script>
    </body>
</html>
              
            
!

CSS

              
                body
  width: 100%
  height: 100%
.container
  max-width: 700px
  margin: auto
  padding: 0
.gallery-flex
  display: flex
  flex-direction: column
  
  &img
    margin-bottom: 20px
    margin-right: 20px
    
.gallery-oversize
  padding-bottom: 8px
.gallery-date
  display: flex
  flex-direction: column
  justify-content: center
  align-items: center
  width: 160px
  height: 104px
  margin-bottom: 20px
  margin-right: 20px
  &_number
    color: #010101
    font-family: 'Noto Serif', serif
    font-size: 35px
    font-weight: bold
  &_month
    color: #010101
    font-family: 'Noto Serif', serif
    font-size: 20px
    font-weight: bold
              
            
!

JS

              
                
              
            
!
999px
We would have called your functions earlier, but we were in a bind.

Console