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

            
              

<table class="table-example table" border="1" cellpadding="10">
    <tr>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    First th
                </span>
            </span>
        </th>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    The Second th dddd
                </span>
            </span>
        </th>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    Third th
                </span>
            </span>
        </th>
       <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    First th
                </span>
            </span>
        </th>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    The Second th dddd
                </span>
            </span>
        </th>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    Third th
                </span>
            </span>
        </th>
       <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    First th
                </span>
            </span>
        </th>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    The Second th dddd
                </span>
            </span>
        </th>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    Third th
                </span>
            </span>
        </th>
       <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    First th
                </span>
            </span>
        </th>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    The Second th dddd
                </span>
            </span>
        </th>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    Third th
                </span>
            </span>
        </th>
       <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    First th
                </span>
            </span>
        </th>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    The Second th dddd
                </span>
            </span>
        </th>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    Third th yyyy
                </span>
            </span>
        </th>
       <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    First th
                </span>
            </span>
        </th>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    The Second th dddd
                </span>
            </span>
        </th>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    Third th
                </span>
            </span>
        </th>
       <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    First th
                </span>
            </span>
        </th>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    The Second th dddd
                </span>
            </span>
        </th>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    Third th
                </span>
            </span>
        </th>
       <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    First th
                </span>
            </span>
        </th>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    The Second th dddd
                </span>
            </span>
        </th>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    Third th hhhh hhhhhh hhhhh
                </span>
            </span>
        </th>
       <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    First th
                </span>
            </span>
        </th>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    The Second th dddd
                </span>
            </span>
        </th>
        <th>
            <span class="rotated-text">
                <span class="rotated-text__inner">
                    Third th
                </span>
            </span>
        </th>
       
    </tr>
    <tr>
        <td>2</td>
        <td>4</td>
        <td>42</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
      
    </tr>
    <tr>
        <td>12</td>
        <td>4</td>
        <td>234</td>
      <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
    </tr>
    <tr>
        <td>13</td>
        <td>100</td>
        <td>0</td>
      <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
       <td>13</td>
        <td>100</td>
        <td>0</td>
    </tr>
  
</table>
            
          
!
            
              .rotated-text {
    display: inline-block;
    overflow: hidden;
    width: 1.5em;
    line-height: 1.5;
}
.rotated-text__inner {
    display: inline-block;
    white-space: nowrap;
    -webkit-transform: translate(0,100%) rotate(-90deg);
       -moz-transform: translate(0,100%) rotate(-90deg);
        -ms-transform: translate(0,100%) rotate(-90deg);
         -o-transform: translate(0,100%) rotate(-90deg);
            transform: translate(0,100%) rotate(-90deg);
    -webkit-transform-origin: 0 0;
       -moz-transform-origin: 0 0;
        -ms-transform-origin: 0 0;
         -o-transform-origin: 0 0;
            transform-origin: 0 0;
}
/* This element stretches the parent to be square
   by using the mechanics of vertical margins  */
.rotated-text__inner:before {
    content: "";
    float: left;
    margin-top: 100%;
}
/* Just for better looking tables */
.table-example {
    display: inline-table;
    vertical-align: top;
    text-align: center;
}

            
          
!
999px
Close

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.

Go PRO

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

Console