CSS text-emphasis-position Property
Example
p {
text-emphasis: double-circle red;
text-emphasis-position: under;
}
writing-mode
Hello World!
Meaning:
The text-emphasis-position CSS property sets where emphasis marks are drawn. Like ruby text, if there isn't enough room for emphasis marks, the line height is increased.
Note: The text-emphasis-position cannot be set, and therefore are not reset either, using the text-emphasis shorthand property.
Default value: | over right |
Inherited: | No |
Animatable: | No |
Version: | CSS3 |
JavaScript syntax: |
|
Standard Syntax
text-emphasis-position: over|under|right|left|initial|inherit|revert|revert-layer|unset;
Browser Support
Status
Property Values
The following table describes the values of this property:
Value | Description |
---|---|
over | Draws marks over the text in horizontal writing mode. |
under | Draws marks under the text in horizontal writing mode. |
right | Draws marks to the right of the text in vertical writing mode. |
left | Draws marks to the left of the text in vertical writing mode. |
initial | Sets this property to its default value. |
inherit | If specified, the associated element takes the computed value of its parent element animation-delay property. |
revert | Reverts the cascaded value of the property from its current value to the value the property |
revert-layer | Rollback styles to the ones specified in previous cascade layers. |
unset | Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not. |
Default CSS Property Values
selectors {
text-emphasis-position: over right;
}