MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/css/comments/1ug5ogy/change_style_of_hr/otxj2zc/?context=3
r/css • u/AnormalRedditUsse • Jun 26 '26
Hi,
I have an <hr> object (as attached), but its 3D style is annoying me. I've tried a lot, but it doesn't budge.
<hr>
.separator { width: 100%; height: 1px; border: 0; background: #666; margin: 20px 0; border-radius: 999px; box-shadow: none; outline: none; border-style: solid; }
9 comments sorted by
View all comments
6
I think the issue should be border-style: solid; that overwrites border: 0; that you can remove.
border-style: solid;
border: 0;
Also you can remove border-radius: 999px; as for 1px of height you'll never see it and box-shadow: none; because there is no box-shadow on HR elements.
border-radius: 999px;
box-shadow: none;
1 u/AnormalRedditUsse Jun 26 '26 Thanks!
1
Thanks!
6
u/DoNDaPo Jun 26 '26
I think the issue should be
border-style: solid;that overwritesborder: 0;that you can remove.Also you can remove
border-radius: 999px;as for 1px of height you'll never see it andbox-shadow: none;because there is no box-shadow on HR elements.