zindex not workig as i want
hi i want to make it so the the after or before goes behid the button completly
i dont know how but i only managed to bring the text up front
4 Replies
Remove the z-index on the button itself.
By adding a z-index on the parent element you are creating a new stacking context which means that it's children won't be able to go behind it.
intresting
but what if i want the button got all the way back ? without z index i cant touch it and it stays infront :/
and with z index before after is completly useless
You could wrap the button in another container that has the z-index.
Alternatively, assuming that the issue here is the background color on the button, you could apply that to another pseudo element ::after.
I don't fully understand what you are trying to achieve so I am sorry if I am missing something.
its perfect tnx a lot