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

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="container">
    <table>
      <thead>
      <tr>
        <th>Название услуги</th>
        <th>Сайт</th>
        <th>Сроки</th>
        <th>Количество страниц</th>
        <th>Стоимость</th>
      </tr>
      </thead>
      <tbody>
      <tr>
        <td data-label="Название услуги">Адаптация таблиц</td>
        <td data-label="Сайт">Лендинг</td>
        <td data-label="Сроки">5 дней</td>
        <td data-label="Количество страниц">1</td>
        <td data-label="Стоимость">1 000 руб</td>
      </tr>
      <tr>
        <td data-label="Название услуги">Адаптация таблиц</td>
        <td data-label="Сайт">Корпоративный сайт</td>
        <td data-label="Сроки">6 дней</td>
        <td data-label="Количество страниц">5</td>
        <td data-label="Стоимость">2 000 руб</td>
      </tr>
      <tr>
        <td data-label="Название услуги">Адаптация таблиц</td>
        <td data-label="Сайт">Интернет-магазин</td>
        <td data-label="Сроки">7 дней</td>
        <td data-label="Количество страниц">15</td>
        <td data-label="Стоимость">5 000 руб</td>
      </tr>
      </tbody>
    </table>
</div>
              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

.container {
  min-width: 320px;
  max-width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

table td, table th {
  padding: 10px;
  border: 1px solid #cbbdbd;
}

tr:nth-child(even){
    background-color: #f0f4c3
    }


@media (max-width: 720px) {

  .container table thead {
    display: none;
  }

  .container table tr {
    display: block;
  }

  .container table td {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
  }

  .container table td::before {
    content: attr(data-label);
    font-weight: bold;
    margin-right: 20px;
  }

}
              
            
!

JS

              
                
              
            
!
999px

Console