::selection

Written by Kevin Gimbel on , 🍿 1 min. read

Using ::selection for fancy selection colors.

::selection {background:#279; color:#fff;}
::-moz-selection {background:#279; color:#fff;}
::-webkit-selection {background:#279; color:#fff;}

Try to select this text, the background will be #279 the color will be #fff.

Also try to select this text. The color will be pink, the background will be black.


This post was imported from my old Tumblr blog I used in 2012.

Hi, I'm Kevin!

I'm a DevOps Engineer with a passion for on automation and monitoring. Before shifting into DevOps and cloud computing I worked as Front-End Developer, which is still a hobby and field of interest for me.

Picture of Kevin Gimbel, in a tiny mirror

I'm very passionated about a variety of games - digital, boardgames, and pen & paper; and also interested in Sci-Fi, Cyberpunk, and dystopian books. You can find out more on the about page.