About 79,300 results
Open links in new tab
  1. html - Underlining text when using CSS - Stack Overflow

    Jan 17, 2012 · em { text-decoration:underline; } The <em/> stands for emphasized text. The default is italic, so depending on your CSS reset, you may need to also reset font-syle to …

  2. css - Control underline position on text-decoration: underline

    Jul 10, 2023 · There is the text-underline-offset property in CSS Text Decoration Module Level 4 which allows you to move the decoration by a specified distance away from its original …

  3. How to increase the gap between text and underlining in CSS

    Nov 14, 2009 · Update 2019: The CSS Working Group has published a draft for text decoration level 4 which would add a new property text-underline-offset (as well as text-decoration …

  4. CSS transition not working with underline - Stack Overflow

    May 20, 2015 · I am using css to make an underline come under a span: CSS: .un{ text-decoration:none; transition: all .5s ease-in; } .un:hover{ text-decoration:underline; } HTML ...

  5. html - How to make text underline css - Stack Overflow

    Apr 25, 2014 · .t1 { display:inline-block; /* make width equal to link content */ padding-bottom:5px; /* margin between underline and text*/ border-bottom:1px dashed red; /* height type and color …

  6. CSS text-decoration underline color - Stack Overflow

    Oct 9, 2012 · Anyways this DOES change the color of the underline compared to the text with at least two spans if you apply the styles on the right wrappers. – Derek Litz Commented Jul 12, …

  7. How to remove the underline for anchors (links)? - Stack Overflow

    Jan 11, 2010 · Or enclose CSS within a style tag on your webpage. <style> a { text-decoration:none; } p { text-decoration:underline; } </style> I wouldn't recommend using the …

  8. CSS: remove underline from text - Stack Overflow

    Oct 31, 2015 · But it does not make sense if descendant text has to inherits text decoration from a parent tag and the specs also allows "text-decoration: none;" at the same time. – curious1 …

  9. How to change the length/position of text-decoration:underline?

    Jul 25, 2018 · Is it possible to change to the underline height from when the developer uses `text-decoration: underline;` in CSS to create an underline? Hot Network Questions All available …

  10. Edit line thickness of CSS 'underline' attribute - Stack Overflow

    Aug 20, 2021 · The text-decoration-thickness CSS property sets the thickness, or width, of the decoration line that is used on text in an element, such as a line-through, underline, or …

Refresh