How can I make those red objects be behind of their parent element but in the way that it'll cut it's borders. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

How can I make those red objects be behind of their parent element but in the way that it'll cut it's borders.

Wonna make an element cutter (the parent element would intersect with its child element but kinda cutting its borders which would creat a layer effect) https://code.sololearn.com/WkiU32Nt9eIb/?ref=app

9th Apr 2020, 6:43 PM
爱人么你
爱人么你 - avatar
2 Réponses
+ 3
Add overflow:hidden; to both of your .wrapper .cont-l >span and .wrapper .cont-r >span css rules...
9th Apr 2020, 6:58 PM
visph
visph - avatar
0
Visph thank you, how didn't i remember about overflow.)
9th Apr 2020, 7:14 PM
爱人么你
爱人么你 - avatar