looking to create a title style where the text breaks in-between the line, not sure if this would be considered a border or what. Any ideas?
Haven’t tried anything yet – have been playing around but can’t figure it out
looking to create a title style where the text breaks in-between the line, not sure if this would be considered a border or what. Any ideas?
Haven’t tried anything yet – have been playing around but can’t figure it out
4
Answers
I have come up with one valid for different text widths and any possible background without adding extra markup. Also, I tried matching the image by adding a few extra stylings and font colors.
Another way of solving it, using flex, padding and linear-gradient.
HTML supports for adding lines with
::before
and::after
CSS Selectors. The::before
selector inserts content before a selected element.::after
inserts content after a specified element.These pseudo-elements in CSS allows you to insert content onto a page without it needing to be in the HTML.
Ex:
HTML
CSS
I hope this solution attached can help you.