DEV Community

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

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited

I knew about them so I'm going to up the stakes.

How about this:

background: background;

It's a fun trivia one that many people do not know about.

border-radius: 9e9rem;

Now that's what I call round

😂

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

Collapse
 
sasscrafter profile image
Dima Prohorenko

😂😂😂 now I do;)

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

I have plenty more of this stuff in my posts, the JS labeled loops one is a popular read

Thread Thread
 
sasscrafter profile image
Dima Prohorenko

I’ll definitely check it out