Tech
How to Style an HTML <hr>: A Clean, Copy-Paste CSS Pattern
Most browsers render an HTML <hr> as a horizontal rule, but the default styling is not always what you want in a real interface.
A common first attempt is to change height or color and move on. That can leave the browser's default border in place, which is why a divider may look thicker, doubled, or different from the design you expected.
Here is a small, reusable pattern that makes the result predictable.
Start with a stable divider class
Add this HTML wherever...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to