How to set background to transparent #32
Answered
by
JakeStanger
JustSimplyKyle
asked this question in
Q&A
-
This, doesn't work. |
Beta Was this translation helpful? Give feedback.
Answered by
JakeStanger
Oct 29, 2022
Replies: 1 comment 5 replies
-
If you want to target the container and everything inside the container, you could use: .container, .container * {
background-color: rgba(0, 0, 0, 0);
} That will recursively set the background on all children and their children. If you want to target only the first layer of children: .container, .container > * {
background-color: rgba(0, 0, 0, 0);
} If needed you could then set the colour back on each widget. EDIT: Transparency needs to be set on the window, which can be done using the .background {
background-color: rgba(0, 0, 0, 0);
} |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
JakeStanger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want to target the container and everything inside the container, you could use:
That will recursively set the background on all children and their children.
If you want to target only the first layer of children:
If needed you could then set the colour back on each widget.
EDIT: Transparency needs to be set on the window, which can be done using the
.background
class: