• Home
  • Cloud VPS
    • Hong Kong VPS
    • US VPS
  • Dedicated Servers
    • Hong Kong Servers
    • US Servers
    • Singapore Servers
    • Japan Servers
  • Company
    • Contact Us
    • Blog
logo logo
  • Home
  • Cloud VPS
    • Hong Kong VPS
    • US VPS
  • Dedicated Servers
    • Hong Kong Servers
    • US Servers
    • Singapore Servers
    • Japan Servers
  • Company
    • Contact Us
    • Blog
ENEN
  • 简体简体
  • 繁體繁體
Client Area

Css Basic: writing-mode

December 20, 2023

CSS Basics: writing-mode

CSS (Cascading Style Sheets) is a fundamental technology used for styling web pages. It allows developers to control the layout, appearance, and behavior of HTML elements. One important aspect of CSS is the ability to control the writing mode of text, which determines the direction in which text flows on a page. In this article, we will explore the “writing-mode” property and its various values.

Understanding the writing-mode Property

The “writing-mode” property in CSS specifies whether text is laid out horizontally or vertically, as well as the direction in which lines of text are stacked. It is particularly useful when designing multilingual websites or creating unique layouts.

The “writing-mode” property accepts several values:

  • horizontal-tb: This is the default value and represents the horizontal writing mode, where text flows from left to right and top to bottom.
  • vertical-rl: This value sets the writing mode to vertical, with text flowing from right to left and top to bottom.
  • vertical-lr: Similar to “vertical-rl,” this value sets the writing mode to vertical, but with text flowing from left to right and top to bottom.
  • sideways-rl: This value rotates the text 90 degrees clockwise, resulting in a vertical layout with text flowing from top to bottom and right to left.
  • sideways-lr: This value rotates the text 90 degrees counterclockwise, resulting in a vertical layout with text flowing from top to bottom and left to right.

Examples of writing-mode Usage

Let’s take a look at some examples to better understand how the “writing-mode” property works:

/* Horizontal Writing Mode */
p {
  writing-mode: horizontal-tb;
}

/* Vertical Writing Mode (Right to Left) */
p {
  writing-mode: vertical-rl;
}

/* Vertical Writing Mode (Left to Right) */
p {
  writing-mode: vertical-lr;
}

/* Sideways Writing Mode (Right to Left) */
p {
  writing-mode: sideways-rl;
}

/* Sideways Writing Mode (Left to Right) */
p {
  writing-mode: sideways-lr;
}

Conclusion

The “writing-mode” property in CSS is a powerful tool for controlling the direction and layout of text on a web page. By understanding and utilizing the different values of this property, developers can create visually appealing and multilingual websites. Experiment with the “writing-mode” property to enhance your web design skills and create unique layouts.

For more information on VPS hosting and how it can benefit your website, visit Server.HK.

Recent Posts

  • CN2 GIA vs BGP vs CN2 GT: What’s the Real Difference for China Connectivity?
  • Top 5 Use Cases for a Hong Kong Dedicated Server in 2026
  • Hong Kong VPS vs Japan VPS: Head-to-Head for Asia-Pacific Deployments in 2026
  • Hong Kong VPS vs Singapore VPS: Which Is Better for Your Asia Business in 2026?
  • How to Migrate from CentOS 8 to AlmaLinux or Rocky Linux Safely

Recent Comments

No comments to show.

Knowledge Base

Access detailed guides, tutorials, and resources.

Live Chat

Get instant help 24/7 from our support team.

Send Ticket

Our team typically responds within 10 minutes.

logo
Alipay Cc-paypal Cc-stripe Cc-visa Cc-mastercard Bitcoin
Cloud VPS
  • Hong Kong VPS
  • US VPS
Dedicated Servers
  • Hong Kong Servers
  • US Servers
  • Singapore Servers
  • Japan Servers
More
  • Contact Us
  • Blog
  • Legal
© 2026 Server.HK | Hosting Limited, Hong Kong | Company Registration No. 77008912
Telegram
Telegram @ServerHKBot