Horizontal line after text css. This Video is going to show you CSS Tricks: Horizontal Lines Before and After Texts (Quick Tutorial) Horizontal Line After Text. Forums user McAsh wondered how they might code up a design in which there was a large header and a smaller subheader beneath it which featured double horizontal lines jutting out after the text to both the left and right of the centered text. If you are tired of standard heading styles then read this snippet and learn to add lines before and after heading giving it an attractive and unique style. This solution is great! The CSS is simple and there is no need to add any extra elements in HTML. 1 <!--The container element type does not matter, just add the "class" and be sure to keep the contents wrapped in a "span" element. Default HR Use this example to separate text content with a <hr> horizontal line. Jun 17, 2025 · In this guide, we’ll explore two effective methods to add horizontal lines in HTML: using the <hr> tag and CSS properties. line-after { Jul 27, 2025 · CSS provides several ways to achieve this effect, and in this blog post, we will explore the fundamental concepts, usage methods, common practices, and best practices for creating a horizontal line next to text. mydiv::after { content: url (img/line Jan 14, 2020 · The correct way to add a line after a heading IS to use CSS not a <hr/> element. --> 2 <label class='line-after'><span>Text with line after:</span><label> x 1 . ouox0r uftoy2 fck3 s6v1u mzp53 0c eeki9 lfdk9ty b39 t1jgty

© 2011 - 2025 Mussoorie Tourism from Holidays DNA