About 281 results
Open links in new tab
  1. CSS text-decoration-line Property - W3Schools

    The text-decoration-line property sets the kind of text decoration to use (like underline, overline, line-through). Tip: Also look at the text-decoration property, which is a short-hand property for …

  2. Line under a text in HTML/CSS - Stack Overflow

    Jan 31, 2021 · How can i put a line under some text? I don't want to underline the text but I want to make something along the lines of this. How can i implement this? You can use a <hr> tag. …

  3. CSS technique for a horizontal line with words in the middle

    This is roughly how I'd do it: the line is created by setting a border-bottom on the containing h2 then giving the h2 a smaller line-height. The text is then put in a nested span with a non …

  4. text-decoration-line - CSS: Cascading Style Sheets | MDN - MDN Web Docs

    Mar 28, 2025 · The text-decoration-line CSS property sets the kind of decoration that is used on text in an element, such as an underline or overline. Try it text-decoration-line: none;

  5. Horizontal rule/line beneath each <h1> heading in CSS

    Jul 1, 2014 · For CSS, use the below code: h1 { border-bottom:1px solid #CCC; padding-bottom:3px; } In case, you want to use the float:left, float:right properties, then you have to use …

  6. How to add horizontal line in HTML - GeeksforGeeks

    Sep 26, 2024 · In this guide, we’ll explore two effective methods to add horizontal lines in HTML: using the <hr> tag and CSS properties. 1. Using <hr> Tag. The Horizontal Rule tag (<hr>) is …

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

    Jan 5, 2024 · When using CSS, use the "text-decoration" CSS style property to underline text. While underlining takes only a few steps, consider other methods for emphasizing text. …

  8. How to Add Horizontal Lines Before and After a Text in HTML

    4 days ago · We'll make use of the CSS :before pseudo-element to add a line to the left side of the text. Apply the code below to your CSS file: content:" "; display: block; height: 2px; width: …

  9. 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 …

  10. How to Underline Text using CSS? - GeeksforGeeks

    Nov 14, 2024 · To underline a text using CSS, the CSS text-decoration property is used with the value set to underline. We use the text-decoration CSS property to underline a text using CSS. …

  11. Some results have been removed
Refresh