Add position:relative
to the card; z-index
is not applied to static
elements.
It is important to note that if any parent of your "element to pop out" has its own z-index
defined, then this method will not work (and there'll be no way to "pop it out") because that parent defines the stacking context for its children.