Skip to content

How to set background to transparent #32

Answered by JakeStanger
JustSimplyKyle asked this question in Q&A
Discussion options

You must be logged in to vote

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 class:

.background {
  background-color: rgba(0, 0, 0, 0);
}

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@JustSimplyKyle
Comment options

@JakeStanger
Comment options

@JustSimplyKyle
Comment options

@JakeStanger
Comment options

@JustSimplyKyle
Comment options

Answer selected by JakeStanger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants