Pen Settings



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


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


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.


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.


                <p>Вибери потрібне значення для <code>column-width</code>:</p>

<input type="number" id="val" placeholder="ширина" value="50" min="0">px

<span>Ця властивість визначає мінімальну ширину стовпця. Кількість стовпчиків буде максимальною кількістю стовпців, які можуть вміститися у контейнер, без стовпця, що має ширину менше, ніж значення column-width​. Фактична ширина стовпчика може бути меншою, ніж значення ширини стовпчика, якщо ширина контейнера менша.</span>
<div id="block">
  <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Suscipit quis corporis, odio recusandae velit praesentium consequuntur fugiat necessitatibus veritatis ipsum reiciendis voluptatum accusamus totam iste eius voluptatibus magni quia blanditiis.</p>


                * {
  box-sizing: border-box;
  padding: 0;

body {
  font-family: momospace;
  font-size: 17px;
  line-height: 1.5;
  color: #222;

p {
  margin-top: 0;

.inputs {
  padding: 8px 16px;
  font-size: 19px;

#block {
  background: #f1f1f1;
  padding: 10px;
  transition: column-width .15s ease-in;
  -webkit-column-rule-width: 1px;
     -moz-column-rule-width: 1px; 
          column-rule-width: 1px;

  -webkit-column-rule-color: gold;
     -moz-column-rule-color: gold;
          column-rule-color: gold;
  -webkit-column-rule-style: solid;
     -moz-column-rule-style: solid;
          column-rule-style: solid;
  -webkit-column-width: 50px;
     -moz-column-width: 50px; 
          column-width: 50px;

#text {
  height: 60px;
  background-color: #eee;
  padding: 16px 0;

message {
  display: none;


                var $message = $('#message');

$('#val').on('change', function() {
  var $messageText = $("message[for='"+$(this).attr('id')+"']")
  $('#block').css('column-width', $(this).val() + 'px');