Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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?

#255787
Beverleyh
Participant

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