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="container">
  <h2>Использование адаптивной ширины с малым количеством контента</h2>
  <div class="row justify-content-md-center my-3">
    <div class="col col-sm-2 bg-info">
      1 из 3
    </div>
    <div class="col-sm-auto bg-dark text-white">
      Содержимое адаптивной ширины. Класс col-sm-auto.
    </div>
    <div class="col col-sm-2 bg-info">
      3 из 3
    </div>
  </div><!-- /.row -->
  <h2>Содержимое адаптивной ширины с большим количеством контента</h2>
  <div class="row justify-content-sm-center my-3">
    <div class="col col-sm-2 bg-info">
      <h5>1 из 3</h5>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dicta, dolores?</p>
    </div>
    <div class="col-sm-auto bg-dark text-white">
      <h5>Содержимое адаптивной ширины. Класс col-sm-auto.</h5>
      <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Provident blanditiis mollitia hic numquam voluptates nisi pariatur fugit praesentium recusandae minus.</p>
      <p>Inventore corporis, eaque sunt aliquam consequuntur itaque velit minus! Repudiandae nesciunt, vel cupiditate consequuntur at eveniet nihil expedita voluptas facilis!</p>
      <p>Aspernatur vel quae praesentium soluta doloribus odit suscipit rerum at, unde, ratione nulla, hic fugiat dicta quaerat quos. Voluptatem, dolore!</p>
    </div>
    <div class="col col-sm-2 bg-info">
      <h5>3 из 3</h5>
      <p>Consectetur minima commodi accusamus et, mollitia modi voluptate aliquid facere?</p>
    </div>
  </div><!-- /.row -->
   <h2>Использование адаптивной ширины с малым количеством контента</h2>
  <div class="row my-3">
    <div class="col bg-danger">
      1 из 3. Класс col
    </div>
    <div class="col-sm-auto bg-warning">
      Содержимое адаптивной ширины.<br> Класс col-sm-auto
    </div>
    <div class="col col-sm-2 bg-success">
      3 из 3. Класс col-sm-2
    </div>
  </div><!-- /.row -->
  <div class="row">
     <h2>Использование адаптивной ширины с большим количеством контента</h2>
    <div class="col bg-danger">
      <h5>1 из 3. Класс col</h5>
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Impedit dignissimos nesciunt molestias mollitia voluptas saepe.</p>
      <p>Possimus accusamus id expedita! Dignissimos itaque corrupti placeat libero dolore aliquam debitis officia, repudiandae error.</p>
      <p>Perferendis sint tempora, quia cum dolores voluptatibus officiis assumenda ullam. Adipisci ut dicta consectetur quam.</p>
    </div>
    <div class="col-sm-auto bg-warning">
      <h5>Содержимое адаптивной ширины.<br> Класс col-sm-auto</h5>
      <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Facere nostrum laborum dolore, est quos praesentium?</p>
      <p>Possimus, voluptatibus, ad suscipit id quisquam praesentium modi inventore voluptate explicabo blanditiis natus numquam repellat?</p>
    </div>
    <div class="col col-sm-2 bg-success">
      <h5>3 из 3. Класс col-lg-2</h5>
      <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Veritatis, inventore!</p>
      <p>Minus hic, quas reprehenderit debitis autem repellat doloribus quam nostrum!</p>
    </div>
  </div><!-- /.row -->
</div><!-- /.container -->
              
            
!

CSS

              
                [class^='col']{
  padding-top: 20px;
  padding-bottom: 20px;
}
              
            
!

JS

              
                
              
            
!
999px

Console