Hi there,
I’m trying to add a background color to an H4 tag in order to create a sort of inverted text result.
It is working except for the fact that the background color extends to the whole line, whereas I’d like to have the bg color ending where the text ends.
This is code I’m using:
h4 {
color: white;
background-color: black;
}
Example.
A is the effect I’m trying to achieve, B is what I get right now:
https://s8.postimg.org/j5xfoh3at/Clipboard01.jpg