Created
August 6, 2020 14:40
-
-
Save DoubleMarv/d0faaf3d3f5baa744b01347043b7a4a2 to your computer and use it in GitHub Desktop.
CSS: Pseudo custom width border under title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//afterline | |
h4{ | |
color: #000; | |
font-size: 22px; | |
font-size: 1.45rem; | |
font-weight: 600; | |
margin-bottom: 1em; | |
display: inline-block; | |
padding-bottom: 0.5em; | |
line-height: 1.25em; | |
position: relative; | |
} | |
h4:after{ | |
content: ''; | |
border-bottom: 2px solid #33bec3; | |
left: 0; | |
position: absolute; | |
width: 14em; | |
top: 100%; | |
} | |
//end afterline |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment