Search notes:

CSS property: writing-mode

The writing-mode property can be set to one of the following values:
horizontal-tb top to bottom
vertical-lr, vertical-rl right to left / left to right
sideways-rl, sideways-lr Experimental

Example

HTML Source code

<!DOCTYPE html>
<html>
<head>
  <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
  <title>Example: writing-mode for table headers</title>

<style>

  thead td {
     writing-mode: sideways-lr;
     vertical-align: bottom;
/*   writing-mode: vertical-lr; */
/*   text-orientation: upright */
  }

</style>
</head>
<body>

<table>
  <thead>
    <tr>
      <td></td>
      <td>Flag one</td>
      <td>Flag two</td>
      <td>Flag three</td>
      <td>Flag four</td>
    </tr>
  </thead>
  <tbody>
    <tr>
     <td>Foo</td>
     <td>✓</td><td>✗</td><td>✗</td><td>✓</td></tr>
    <tr>
     <td>Bar</td>
     <td>✗</td><td>✓</td><td>✗</td><td>✓</td>
    </tr>
    <tr>
     <td>Baz</td>
     <td>✓</td><td>✗</td><td>✓</td><td>✗</td>
    </tr>
  <tbody>
</table>

</body>
</html>

See also

The writing-mode property should be used instead of the obsoleted attribute layout-flow.
CSS properties

Index