+ 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 Answers
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