CSS writing-mode

The CSS writing-mode property is used to lay the text horizontally or vertically, along with the direction. For example:

HTML with CSS Code
<!DOCTYPE html>
<html>
<head>
   <style>
      p{writing-mode: vertical-lr;}
   </style>
</head>
<body>
   
   <p>This is an example of writing-mode property.</p>

</body>
</html>
Output

This is an example of writing-mode property.

CSS writing-mode Syntax

The syntax of writing-mode property in CSS, is:

writing-mode: x;

The value of x should be any of the following:

CSS Online Test


« Previous Tutorial Next Tutorial »