How To Style HR with CSS

Style HR with CSS

The horizontal rule is typically used as a divider in content or sections in HTML pages. Today I’m going to show you how to style the horizontal rule, or <hr> element, with CSS. Changing <hr> Width With CSS First, let’s check out what an unstyled horizontal rule looks like: Kinda boring. By default, The <hr> […]