Skip to content

Selection

Inju Michorius edited this page May 17, 2021 · 1 revision

By far the easiest and weirdest custom option in CSS. Turns out, you can change the colors when you try to select something. There is not much to explain, you can only change text color and background color. It's not possible to add animations and/or change font properties.

::selection {
    color: var(--red);
    background-color: var(--blue);
}

Weeks

Week 1 📕

Week 2 📙

CSS Techniques

CSS variables 🧠

Font-face 👁‍🗨

Fonts 🅰️

Keyframes 🥳

Custom everything!

Favicon 🌆

Cursor 🖱️

Scrollbar ⌨️

Selection 🧲

Clone this wiki locally