How to make a layer behind my div?

i want to add this bluish layer behind the main div how? https://codepen.io/tataa31/pen/LYqeOqZ
tarek
CodePen
LYqeOqZ
...
No description
7 Replies
T
T7mo ago
thanks ❤️ how did i forget about the before 🤦‍♂️
missymae#2783
missymae#27837mo ago
Ah, vince used ::before
missymae#2783
missymae#27837mo ago
I did with box-shadow
No description
T
T7mo ago
i love css amazing with 1 line
Hamutcan
Hamutcan6mo ago
why is "before" take up same space (width and height) with main div
clevermissfox
clevermissfox6mo ago
Because it’s part of the same element, it’s just ::before or ::after the content inside it <div> ::before <p>I am some content </p> ::after </div> NOT ::before <div> <p>I am some content </p> </div> ::after
Want results from more Discord servers?
Add your server
More Posts