CSS text-emphasis-position Property

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 4 Examples
Typography

What You’ll Learn

The text-emphasis-position property controls where emphasis marks appear relative to text characters — above, below, left, or right.

01

over

Marks above text.

02

under

Marks below text.

03

left / right

Side placement.

04

Combine

under left, etc.

05

Default

over right.

06

CJK Text

East Asian layouts.

Introduction

The text-emphasis-position property in CSS allows web developers to specify the position of emphasis marks relative to the text. Emphasis marks are used in East Asian typography to highlight or emphasize characters.

This property is useful for ensuring that the emphasis marks are positioned correctly in relation to the text, enhancing readability and maintaining typographic integrity.

Definition and Usage

Use text-emphasis-position when emphasis marks already exist and you need to control their placement. Set a mark shape first with text-emphasis-style or the text-emphasis shorthand, then choose whether marks appear above or below the text and on the left or right side of each character.

💡
Beginner Tip

The default is over right. Try text-emphasis-position: under left; to see how mark placement changes on horizontal text.

📝 Syntax

The syntax for the text-emphasis-position property is straightforward. It can be applied to any element that supports it, and you can specify the position using predefined keywords:

syntax.css
element {
  text-emphasis-position: position;
}

Here, position can be a combination of the following keywords: over, under, right, and left.

Basic Example

text-emphasis-position.css
p {
  text-emphasis-style: circle;
  text-emphasis-position: under left;
}

Syntax Rules

  • Combine a vertical keyword (over or under) with a horizontal one (left or right).
  • If you omit the horizontal keyword, the browser uses the writing-mode default.
  • Set an emphasis style before marks become visible.
  • The property is inherited, so parent placement can affect child elements.

Related Properties

  • text-emphasis — shorthand for style and color
  • text-emphasis-style — sets the mark shape or custom symbol
  • text-emphasis-color — sets the mark color
  • writing-mode — affects which side is considered left or right

🎯 Default Value

The default value of the text-emphasis-position property is over right. This means that the emphasis marks are placed above the text and to the right of the characters in horizontal writing modes.

⚡ Quick Reference

QuestionAnswer
Default valueover right
Marks below texttext-emphasis-position: under;
Marks below and lefttext-emphasis-position: under left;
Vertical keywordsover, under
Horizontal keywordsleft, right
InheritedYes

💎 Property Values

The text-emphasis-position property accepts keyword values that control mark placement.

ValueExampleDescription
overtext-emphasis-position: over;Places the emphasis marks above the text.
undertext-emphasis-position: under;Places the emphasis marks below the text.
righttext-emphasis-position: over right;Places the emphasis marks to the right of the text (default for horizontal writing modes).
lefttext-emphasis-position: over left;Places the emphasis marks to the left of the text (default for vertical writing modes).
Combinedtext-emphasis-position: under left;Combines vertical and horizontal placement in one declaration.
over right under left over under

When to Use text-emphasis-position

text-emphasis-position helps you match typographic conventions and avoid mark collisions:

  • East Asian content — Follow regional conventions for where emphasis marks should appear.
  • Avoid underline clashes — Move marks above text when underlines or descenders are present.
  • Vertical writing — Adjust left/right placement for vertical text layouts.
  • Design polish — Fine-tune mark placement for headings, notes, and vocabulary lists.

👀 Live Preview

Compare different text-emphasis-position values on dot emphasis marks:

Default-style over right placement.
Marks below and to the left.
Marks above the text only.
Marks below the text only.

Examples Gallery

In this example, we’ll position the emphasis marks below and to the left of the text, then explore more placement patterns.

📜 Basic Placement

Control where emphasis marks appear relative to each character.

Example 1 — Marks below and to the left

In this example, we’ll position the emphasis marks below and to the left of the text.

index.html
<style>
  p {
    text-emphasis-style: circle;
    text-emphasis-position: under left;
  }
</style>

<h1>Text Emphasis Position Example</h1>
<p>This is an example text with emphasis marks positioned below and to the left.</p>
Try It Yourself

How It Works

Circle marks appear below each character and align to the left side of the glyphs.

Example 2 — Marks above the text

Use over to place emphasis marks above horizontal text, matching the default vertical placement.

over-emphasis.css
.vocab-over {
  text-emphasis: dot #dc2626;
  text-emphasis-position: over;
}
Try It Yourself

How It Works

Red dot marks render above the baseline, which is the common default for horizontal Latin and CJK text.

📄 Practical Use Cases

Move marks below underlines and combine all emphasis longhands for full control.

Example 3 — Marks below linked text

Place marks under text when above-text marks would collide with descenders or other decorations.

under-emphasis.css
.study-term {
  text-emphasis-style: sesame;
  text-emphasis-color: #059669;
  text-emphasis-position: under;
}
Try It Yourself

How It Works

Using under keeps emphasis marks away from the top of tall characters and heading ascenders.

Example 4 — Full emphasis with custom position

Combine style, color, and position longhands for precise emphasis control.

full-emphasis-position.css
.lesson-highlight {
  text-emphasis-style: dot;
  text-emphasis-color: #9333ea;
  text-emphasis-position: over right;
}
Try It Yourself

How It Works

Position is the final longhand piece that fine-tunes where marks appear alongside style and color.

♿ Accessibility

  • Marks are decorative — Use semantic HTML such as <em> for meaningful emphasis, not mark placement alone.
  • Avoid visual clutter — Poor mark placement can make text harder to read for everyone.
  • Test with underlines — Ensure marks do not overlap link underlines or other text decorations.
  • Screen readers — Emphasis mark position is not typically announced; keep important meaning in the text.

text-emphasis-position in the family

text-emphasis-position controls placement only. Combine it with text-emphasis-style and text-emphasis-color, or use the text-emphasis shorthand for style and color together.

emphasis-position-set.css
.cjk-term {
  text-emphasis: dot #2563eb;
  text-emphasis-position: under left;
}

🧠 How text-emphasis-position Works

1

Emphasis marks exist

A style is set with text-emphasis or text-emphasis-style.

Style
2

You choose placement keywords

Pick over or under, optionally with left or right.

Position
3

Browser places marks per character

Each glyph gets a mark in your chosen vertical and horizontal position.

Rendering
=

Typographically correct emphasis

Marks sit where readers expect them in horizontal or vertical layouts.

Browser Compatibility

The text-emphasis-position property is supported in most modern browsers, including the latest versions of Chrome, Firefox, Safari, Edge, and Opera. However, it is always a good practice to test your website across different browsers to ensure compatibility.

Modern browsers · Wide support

Emphasis placement in today’s browsers

Chrome, Firefox, Safari, Edge, and Opera all support text-emphasis-position in current versions.

95% Modern browser support
Google Chrome 99+ · Desktop & Mobile
Full support
Mozilla Firefox 46+ · Desktop & Mobile
Full support
Apple Safari 7+ · macOS & iOS
Full support
Microsoft Edge 99+ · Chromium
Full support
Opera 85+ · Modern versions
Full support

Testing tip

Compare under left and over right in Safari and Firefox on mobile devices.

text-emphasis-position property 95% supported

Bottom line: text-emphasis-position is safe to use for East Asian typography and decorative emphasis in modern projects.

Conclusion

The text-emphasis-position property is a valuable tool for web developers who need to work with East Asian typography or want to emphasize specific parts of their text.

By specifying the position of emphasis marks, you can enhance the readability and visual appeal of your content. Experiment with different positions to see how this property can improve the presentation of your text.

💡 Best Practices

✅ Do

  • Set an emphasis style before applying text-emphasis-position
  • Use under when marks would clash with ascenders or headings
  • Combine vertical and horizontal keywords when placement matters
  • Test placement in the writing mode your content uses
  • Pair with text-emphasis-color for full control

❌ Don’t

  • Expect marks to move without an active emphasis style
  • Place marks where they overlap underlines or line decorations
  • Assume all browsers render combined keywords identically without testing
  • Rely on mark position alone for accessibility meaning

Key Takeaways

Knowledge Unlocked

Five things to remember about text-emphasis-position

Use these points when placing emphasis marks.

5
Core concepts
02

over right

Default value.

Default
03

under left

Common combo.

Example
🔁 04

Inherited

Flows to children.

Cascade
🌾 05

CJK Text

East Asian use.

Context

❓ Frequently Asked Questions

text-emphasis-position controls where emphasis marks appear relative to text characters, such as above, below, to the left, or to the right.
The default is over right, which places emphasis marks above the text and to the right of each character in horizontal writing.
Yes. You can combine a vertical keyword (over or under) with a horizontal keyword (left or right), such as under left or over right.
Yes. Emphasis marks only appear when a style is set with text-emphasis or text-emphasis-style. Position then controls placement.
Yes, text-emphasis-position is inherited, so setting it on a parent can affect emphasis marks on child elements.

Practice in the Live Editor

Open the HTML editor and try text-emphasis-position: under left; with circle emphasis marks.

HTML Editor →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

5 people found this page helpful