• 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: hyphens

December 20, 2023

CSS Basics: Hyphens

In the world of web design, CSS (Cascading Style Sheets) plays a crucial role in determining the visual appearance of a website. One of the lesser-known CSS properties is the “hyphens” property, which allows for better control over how words are hyphenated and broken across lines. In this article, we will explore the basics of the “hyphens” property and its usage.

What is the “hyphens” property?

The “hyphens” property is a CSS property that controls the hyphenation behavior of words when they are broken across lines. It specifies whether words can be hyphenated and where hyphenation is allowed.

The “hyphens” property accepts three values:

  • none: Words are not hyphenated.
  • auto: Words are hyphenated according to the language-specific hyphenation rules.
  • manual: Words are hyphenated using the hyphenation hints provided by the author using the ­ character.

Usage and Examples

Let’s take a look at some examples to understand how the “hyphens” property works:

p {
  hyphens: auto;
}

In this example, the “hyphens” property is set to “auto”. This means that words will be hyphenated according to the language-specific hyphenation rules. The browser will determine where to break the words based on the available space and the language of the text.

p {
  hyphens: manual;
}

In this example, the “hyphens” property is set to “manual”. This allows the author to provide hints for hyphenation using the ­ character. For example, the word “hyphenation” can be written as “hy­phen­a­tion” to indicate possible hyphenation points. The browser will use these hints to determine where to break the words.

Browser Support

The “hyphens” property is supported by most modern browsers, including Chrome, Firefox, Safari, and Edge. However, it is important to note that browser support may vary depending on the version and platform.

Conclusion

The “hyphens” property in CSS provides control over how words are hyphenated and broken across lines. By using the “hyphens” property, web designers can improve the readability and aesthetics of their websites. Whether it’s automatically hyphenating words based on language rules or manually providing hints for hyphenation, the “hyphens” property offers flexibility and control. Experiment with different values of the “hyphens” property to find the best hyphenation behavior for your website.

Learn More About Server.HK

If you are looking for reliable VPS hosting services in the Hong Kong, consider Server.HK. With a wide range of hosting plans and excellent customer support, Server.HK is a trusted provider in the industry. Visit server.hk to learn more about their VPS hosting solutions.

Recent Posts

  • How to Choose the Right Hong Kong VPS Plan: A Buyer’s Guide for 2026
  • 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?

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