About 12,100,000 results
Open links in new tab
  1. CSS Text Decoration - W3Schools

    Add a Decoration Line to Text. The text-decoration-line property is used to add a decoration line to text. Tip: You can combine more than one value, like overline and underline to display lines …

  2. html - Extending an underline in CSS - Stack Overflow

    Feb 12, 2014 · Use a border rather than underlining. Use the first-child pseudo class to apply it to only the first paragraph within .numbers: width:200px; border-bottom:1px solid #000; padding …

  3. How to Underline Text using CSS? - GeeksforGeeks

    Nov 14, 2024 · To underline all words of a text using jQuery, you can wrap each word in a <span> tag and apply the CSS text-decoration property. This approach allows for individual styling of …

  4. CSS text-decoration Property - W3Schools

    Set different text decorations for <h1>, <h2>, and <h3> elements: More "Try it Yourself" examples below. The text-decoration property specifies the decoration added to text, and is a shorthand …

  5. html - Underlining text when using CSS - Stack Overflow

    Jan 17, 2012 · If you really want underline (which is generally not a good idea in HTML documents, as pointed out here), then <u> is the simplest and most robust way. You would …

  6. CSS Underline: 20+ Examples - Shark Coder

    Learn how to create CSS underlines of various types: gradient, marker-style, multi-line, star-shaped, animated, handwritten, and more. To design links or create animations of menu …

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

    Nov 14, 2009 · Using CSS, when text has text-decoration:underline applied, is it possible to increase the distance between the text and the underline? CSS3 has a lot of new text …

  8. How to Underline Text in CSS and HTML: 2 Simple Ways - wikiHow

    Jan 5, 2024 · Use the <span> tag when you want to underline a certain piece of text. Place the opening tag along with the "text-decoration" property where you want to start underlining. …

  9. How to Add Underline to Text in CSS - Java Guides

    Use text-decoration Property: Set text-decoration to underline to add an underline to the text. Customize the Underline : Use different values for text-decoration to control the style (e.g., …

  10. How To Underline Text In CSS? (CSS text-decoration property)

    Feb 23, 2025 · To add a basic underline to any text element, you’ll use the following CSS code: CSS p { /* Targets paragraph elements */ text-decoration: underline; } This simple code …

  11. Some results have been removed