cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

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.

              <h2>Использование <code>vertical-align</code> свойства для табличных ячеек</h2>

<table class="table">
      <td class="td1" rowspan="2">Пример текста.
      <td class="td2">Пример текста.</td>
      <td>Пример текстаt.</td>

<div class="buttons">

<p>Выберите значение свойства <code>vertical-align</code> для ячейки голубого цвета.</p>

  <p>Ссылка на статью: <a href="http://bogdanov-blog.ru/10-osobennostej-css-o-kotoryh-vy-vozmozhno-ne-znali/" target="_blank">10 особенностей CSS, о которых вы, возможно, не знали</a></p>
              body {
  text-align: center;
  padding-top: 20px;
  font-family: Arial, sans-serif;

table {
  margin: 20px auto;

th {
  border-collapse: collapse;

td {
  padding: 10px;
  border: solid 1px;
  text-align: center;

.table td {
  background: lightpink;

.table .td1 {
  vertical-align: middle;
  width: 50%;
  height: 100px;
  background: lightblue;
  padding: 20px;
  font-size: 40px;

footer {
  border-top: 1px solid gray;
  margin-top: 50px;
              var buttons = document.querySelector('.buttons').querySelectorAll('button');

for (var i = 0; i < buttons.length; i++) 
    buttons[index].addEventListener('click', function() 
      document.querySelector('.table .td1').style.verticalAlign = buttons[index].innerHTML;
Loading ..................