I’m using Foundation 6 (just a little bit of background) and in a project, several titles are styled this way:
You can ignore the brigther blue background. It’s possible to make that border that covers the title using anything in CSS? I’m currently using this file as a SVG, but I know this is not SEO/acessible friendly, and I really think .svg is more a hack than the actual solution.
I don’t know if the solution resides on:
border-bottom: solid 1px blue;
Or something else?
2
Answers
You can use
border-bottom
for that to work, but there will be a gap.If you want the line to go through the the text, you could try and use a
:before
or:after
pseudo element on the titlehere is a codepen https://codepen.io/Spoochy/pen/QWGPoPZ
https://jsfiddle.net/32yahu0v/