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.
Fundamentals
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.
Foundation
📝 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.
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
Defaults
🎯 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.
Cheat Sheet
⚡ Quick Reference
Question
Answer
Default value
over right
Marks below text
text-emphasis-position: under;
Marks below and left
text-emphasis-position: under left;
Vertical keywords
over, under
Horizontal keywords
left, right
Inherited
Yes
Reference
💎 Property Values
The text-emphasis-position property accepts keyword values that control mark placement.
Value
Example
Description
over
text-emphasis-position: over;
Places the emphasis marks above the text.
under
text-emphasis-position: under;
Places the emphasis marks below the text.
right
text-emphasis-position: over right;
Places the emphasis marks to the right of the text (default for horizontal writing modes).
left
text-emphasis-position: over left;
Places the emphasis marks to the left of the text (default for vertical writing modes).
Combined
text-emphasis-position: under left;
Combines vertical and horizontal placement in one declaration.
over rightunder leftoverunder
Context
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.
Preview
👀 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.
Hands-On
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>
Lesson highlights with purple dots above and to the right.
How It Works
Position is the final longhand piece that fine-tunes where marks appear alongside style and color.
A11y
♿ 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.
Companion
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.
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.
Compatibility
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 Chrome99+ · Desktop & Mobile
Full support
Mozilla Firefox46+ · Desktop & Mobile
Full support
Apple Safari7+ · macOS & iOS
Full support
Microsoft Edge99+ · Chromium
Full support
Opera85+ · Modern versions
Full support
Testing tip
Compare under left and over right in Safari and Firefox on mobile devices.
text-emphasis-position property95% supported
Bottom line:text-emphasis-position is safe to use for East Asian typography and decorative emphasis in modern projects.
Wrap Up
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.