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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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="box">

<p>У цьому прикладі, Ви можете змінювати значення для властивості <strong>border-radius</strong>.</p>

<p>Вона встановлює, ступінь заокруглення кутів кордону елемента. В цьому прикладі, Ви можете визначити цей ступінь, для кожного з кутів окремо (в такому порядку: верхній лівий кут, верхній правий, нижній правий, нижній лівий).</p>

<strong>border-radius: </strong>
<input type="number" class="input" id="num1" value="24" min="0">px 
<input type="number" class="input" id="num2" value="24" min="0">px 
<input type="number" class="input" id="num3" value="24" min="0">px 
<input type="number" class="input" id="num4" value="24" min="0">px 
<strong>;</strong>
  
</div>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
}

body {
  font-family: monospace;
  font-size: 16px;
  line-height: 1.45;
  height: 100vh;
  padding: 16px;
}

.box {
  background-color: #f7f7f7;
  padding: 16px;
  border: 24px solid #444;
	border-radius: 24px;
}

.input {
  margin-bottom: 36px;
  width: 75px;
}

#select {
  position: relative;
  top: -4px;
  width: 100px;
}
              
            
!

JS

              
                $('.input').on('change', function() {
  var num1 = $('#num1').val();
  var num2 = $('#num2').val();
  var num3 = $('#num3').val();
  var num4 = $('#num4').val();
  $('.box').css( 'border-radius', num1 + 'px ' + num2 + 'px ' +  num3 + 'px ' + num4 + 'px' );
});
              
            
!
999px

Console