I want to set a bottom border for some text but so that it has much lower distance than default, so it looks something like this:
However as I understand, this cannot be done using border property. So I'm trying to use :after
property. Following code does what i need but only if the text is on one line.
a:after{
margin-top: -40px;
display: block;
content: ' ';
height: 30px;
background: green;
}
It will make the multi line text like this:
Is there anyway to add bottom border/shadow like this for multiple lines text using CSS only?
JSFiddle Link: http://jsfiddle.net/ty2ork8b/