Streaming live at 10am (PST)

Trouble with pseudo element stacking


#1

Hey Guys,

I try to archive a certain button style, that needs the pseudo elements :after and :before, so it must be custom code. I got it nearly perfect with the exception, that my pseudo element overlaps the border of the parent, although I gave him a z-index of -1.

I created a little CodePen to show the problem.


#2

This topic was automatically closed 125 days after the last reply. New replies are no longer allowed.