• 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: text-emphasis-position

December 20, 2023

CSS Basics: text-emphasis-position

In the world of web design, CSS plays a crucial role in enhancing the visual appeal of a website. One of the lesser-known CSS properties is text-emphasis-position, which allows developers to control the position of emphasis marks on text. In this article, we will explore the basics of text-emphasis-position and how it can be used to improve the typography of your website.

Understanding text-emphasis-position

The text-emphasis-position property is used to specify the position of emphasis marks on text. Emphasis marks are small symbols or dots that are placed above, below, or over the text to draw attention to specific characters or words. By default, the emphasis marks are centered vertically on the text, but with text-emphasis-position, you can adjust their position to achieve the desired visual effect.

Usage and Syntax

The text-emphasis-position property accepts two values: over and under. The over value places the emphasis marks above the text, while the under value positions them below the text. Here’s an example:

p {
  text-emphasis-position: over;
}

In the above example, the emphasis marks will be placed above the text within the <p> element.

Browser Compatibility

It’s important to note that the text-emphasis-position property is not widely supported by all browsers. As of now, it is only supported by Firefox and Safari. Therefore, it is recommended to use it with caution and provide fallback options for unsupported browsers.

Examples

Let’s take a look at a couple of examples to understand how text-emphasis-position can be used effectively:

Example 1: Over the Text

p {
  text-emphasis-position: over;
}

In this example, the emphasis marks will be placed above the text, creating a visually appealing effect.

Example 2: Under the Text

p {
  text-emphasis-position: under;
}

In this example, the emphasis marks will be positioned below the text, providing a different visual emphasis.

Summary

The text-emphasis-position property in CSS allows developers to control the position of emphasis marks on text. By adjusting the position of these marks, you can enhance the typography and visual appeal of your website. While it is not widely supported by all browsers, it can still be used effectively with fallback options. To learn more about 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