-
Stefanie
Hi team,
I have created a global class
.container-link
, which normally works fine.
But it doesn’t work with this section here.
Is there a way to fix it?Thank you!
-
Hi there,
You’ve set the parent container of h5 to
position:relative
, so the:before
element can only go as big as the container. Removing the position value should fix the problem. -
Stefanie
Oh, I see. Thank you!
I didn’t set this value myself. But I noticed that GB set it automatically as soon as I increased the z-index.I had to increase the z-index so that the text wouldn’t become transparent.
And at that moment GB automatically set the container toposition:relative
(without me wanting it to 🤨)Thanks!
-
Alvind
The z-index only works if the parent element has a position value other than static, so what you’re seeing is expected. Usually, setting the text element to position: relative is enough to bring it above without explicitly setting a z-index.
- You must be logged in to reply to this topic.