Home › Forums › CSS › How to create 2 lines on both sides of a background image? › Reply To: How to create 2 lines on both sides of a background image?
Is the problem that you can’t space the lines at equal distance from each side of the moustache?
Try using positioning; relative on the parent, absolute on the child/pseudo elements. Note that the negative offset of the :before element is a total of the width + margin-left of the :after element https://codepen.io/anon/pen/yXOXGq