I was asked to code an unusual shape background color on some centered text.
The text should be centered and it's background color should continue all the way right of the parent element.
Here is the desired output :
I have never seen anything like this so I don't even know where to start. Thank you for your help!
I don't understand well your problem, but try to mix these concepts:
HTML:
JS:
try to change the son and the parent colors.
You can use a pseudo element to make the black background continue on the right :
DEMO
HTML :
CSS :