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.

              <div class="grid">
  <div>Область «banner»</div>
  <div>Область «container»</div>
  <div>Область «menu»</div>
              body {font: 18px Verdana sans-serif;}

.grid {
  display: grid;
  width: 500px;
  height: 150px;
/* верхняя горизонтальная грид-линия */
/* структура первого ряда и его высота */
               "banner     banner"     auto
/* средняя горизонтальная грид-линия */
   [header-bottom main-top]
/* структура второго ряда и его высота */
               "container  menu"       1fr
/* нижняя горизонтальная грид-линия */
/* конец описания рядов */
  /* ширины грид-колонок */
                2fr        1fr;

.grid > :nth-child(1) {
    background-color: #FCC;
    grid-column: banner-start; /* то же, что 1 */
    grid-column-end: banner-end; /* то же, что 3 */
    grid-row-start: header-top; /* то же, что 1 */
    grid-row-end: header-bottom; /* то же, что 2 */

.grid > :nth-child(2) {
    background-color: #CFC;
    grid-row-start: header-bottom;  /* то же, что 2 */
    grid-row-end: main-bottom;  /* то же, что 3 */
    /* колонка не задана, поэтому берется первая свободная */

.grid > :nth-child(3) {
    background-color: #CCF;
    grid-row-start: header-bottom;
    grid-row-end: main-bottom;

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 ..................