For cross-browsing it is better to use text-underline-offset
over the text-underline-position
, because text-underline-position
isn’t supported by iOS Safari
So use this answer: https://stackoverflow.com/a/63607426/1894907
#line{
text-decoration-line: underline;
text-underline-offset: 2px;
}
Related Contents:
- How to specify line breaks in a multi-line flexbox layout?
- Setting table column width
- How Do I Make Glyphicons Bigger? (Change Size?)
- How to “crop” a rectangular image into a square with CSS?
- Twitter Bootstrap 3 Sticky Footer
- What’s default HTML/CSS link color?
- CSS margin terror; Margin adds space outside parent element [duplicate]
- Removing ul indentation with CSS
- How can I make space between two buttons in same div?
- How do I horizontally center an absolute positioned element inside a 100% width div? [duplicate]
- Inspect hovered element in Chrome?
- Switching the order of block elements with CSS [duplicate]
- Difference between HTML “overflow : auto” and “overflow : scroll”
- Checkboxes in web pages – how to make them bigger?
- How to stretch div height to fill parent div – CSS
- Can I color table columns using CSS without coloring individual cells?
- How to make this illumination effect with CSS
- How to apply a style to an embedded SVG?
- How to set min-font-size in CSS
- Disable a link in Bootstrap
- HTML float right element order
- Second line in li starts under the bullet after CSS-reset
- What is the effect of encoding an image in base64?
- 7 equal columns in bootstrap
- Specifying a preferred line break point in HTML text in a responsive design [duplicate]
- Put text at bottom of div
- Where do the bullets come from on elements?
- How to change color of disabled html controls in IE8 using css
- How to set the maximum width of a column in CSS Grid Layout?
- Remove space (gaps) between multiple lines of flex items when they wrap
- White space at top of page
- Linethrough/strikethrough a whole HTML table row
- Is it possible to make Font Awesome icons larger than ‘fa-5x’?
- Google Fonts violates Content Security Policy
- Centering Bootstrap input fields
- How to make div stick to the bottom of parent div?
- Input Checkbox checked by default
- How to center a textarea using CSS?
- Inserting a blank table row with a smaller height
- CSS side by side div’s auto equal widths
- Display: Flex loses right padding when overflowing?
- How to add background image for input type=”button”?
- Force HTML Tables To Not Exceed Their Containers’ Size
- Misalignment of Facebook & Twitter buttons
- How to remove the space between list items [duplicate]
- Center an tag inside a
- Does IE7 have a “developer mode” or plugin like Firefox/Chrome/Safari? [duplicate]
- How to control the width of select tag?
- Trimming image corners with border-radius set on parent div doesn’t work in Safari
- Many SCSS/SASS files to one CSS file?