cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


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.

  .item 50px
  .item 20%
  .item min-content
    nobr max-content
  .item 1fr
  .item 2fr
  .item auto
  .item Тестовая строка
  .item Тестовая строка
  .item Тестовая строка
  .item Тестовая строка
  .item Тестовая строка 
  .item Тестовая строка
  .item Тестовая строка
  .item Текст
  .item Текст
  .item Текст
  .item Текст
  .item Текст 
  .item Текст
  .item.fix-size Ограничен<br />min-width: 100px;
              .grid {
  display: grid;
  /* фолбэк для Safari */
  grid-template-columns: 50px 20% -webkit-min-content -webkit-max-content 1fr 2fr auto;
  /* для взрослых браузеров */
  grid-template-columns: 50px 20% min-content max-content 1fr 2fr auto;
  grid-template-rows: auto minmax(50px, 50vh) 5em;
  background: #ccc;
  padding: 2px;
  grid-gap: 2px;
  animation: pulse 10s ease-in-out infinite alternate;
  font: 8px/1.25 sans-serif;

.item {
  background: rgba(255,255,160,.7);
  padding: 3px;

.item:nth-child(even) {
  background: rgba(192,255,160,.7);

.fix-size {
  min-width: 100px;
  background: rgba(255,160,128,.7);

@keyframes pulse {
  0%, 5% { 
    width: 270px;
    height: 90px;
  95%, 100% {
    width: 100%;
    height: calc(100vh - 24px);

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................