DEV Community

Discussion on: CSS tricks you probably didn't know about.

Collapse
mrdanielschwarz profile image
Daniel Schwarz

What does background: background; do? Inheritance?

Collapse
adam_cyclones profile image
Adam Crockett

Mad as this sounds. It takes the colour of your systems desktop background colour, the colour you would see without a background image.
So in other words it's different depending on which OS and platform you use.

Thread Thread
mrdanielschwarz profile image
Daniel Schwarz

Insane. My background is an image with a strong purple overlay, so I got a random purple colour (as if the eyedropper was used randomly).

Thread Thread
adam_cyclones profile image
Adam Crockett

Not quite the colour comes from the colour behind the image, it's an old fashioned thing back in the days of xp