If you are like me, you have ran into this issue many times. Need to add a border to the bottom of an parent element but you don’t want it to be under 100% of the element.
Can this be done in css?
Which led me to the answer…YES!
See the Pen Shorten the length of Border-Bottom with CSS by Ghulam Haider (@GhHaider) on CodePen.
Top comments (0)