Mr Rainman
@phantomgizmoAll solutions
- Submitted 14 days ago
Newsletter Sign Up with React Typescript and Tailwindcss
- HTML
- CSS
- JS
- I struggle about z-index when creating shadow for a button. I learnt about an element will create stacking context if it has position other than static and z-index other than auto or 0. I set the button position to relative and z-index to 1 and before pseudo-element position to absolute and z-index of -1. But it only move the before pseudo-element below button text and stil on top of button background color.