+ 13

[SOLVED] How to make a transparent hole with css?

https://code.sololearn.com/WWlJPacxK132/?ref=app This is the code. I wanna make the div (with id space) a hole through which the body background gradient is visible.

28th Dec 2020, 6:17 PM
Bartika🎶
Bartika🎶 - avatar
10 Antworten
28th Dec 2020, 6:30 PM
Atoms~⚛
Atoms~⚛ - avatar
+ 9
Atomic Wave ~⚛ thank you so much 😍... btw how does it work? How does background-attachment property make it possible?
28th Dec 2020, 6:34 PM
Bartika🎶
Bartika🎶 - avatar
+ 9
https://code.sololearn.com/WMR2JaSzItxK/?ref=app I found only this solution, because I saw in Atomic Wave ~⚛ help code (https://code.sololearn.com/WkP30h7RvrO4/?ref=app) , if we scroll down, the background of the space changes strangely. But I think my solution isn't very good. 😅
28th Dec 2020, 6:57 PM
Matthew
Matthew - avatar
+ 7
Atomic Wave ~⚛ oh I see 😯.. thank you!
28th Dec 2020, 6:41 PM
Bartika🎶
Bartika🎶 - avatar
+ 6
Spentify thanks! 👍
28th Dec 2020, 6:58 PM
Bartika🎶
Bartika🎶 - avatar
+ 5
If I use opacity, then the blue block will show up. I want the body's background gradient to be visible directly.
28th Dec 2020, 6:25 PM
Bartika🎶
Bartika🎶 - avatar
+ 5
Spentify Oh ok... no problem 😂👍
28th Dec 2020, 6:27 PM
Bartika🎶
Bartika🎶 - avatar
+ 5
Bartika🎶 you are welcome ☺️ idk how it works 😂I noticed it when I was making gradients in my code and then I added this property didn't knowing what it does , suddenly all the gradients in the page was in sync with eachother🤯
28th Dec 2020, 6:40 PM
Atoms~⚛
Atoms~⚛ - avatar