Logo - Albert Walicki

Style your selected text

CSS
::selection pseudo class selector allows to style selection of the text

Use ::selection pseduo class selector to change the style of the selected text. You can't change all CSS properties, but only these:

  • color

  • background-color

  • text-decoration

  • text-shadow

  • stroke-color, fill-color and stroke-width

Style your ::selection to match your website!

See more tips!

CSS
Attribute required can be styled with :required pseudo class selector

Required or not?

Logo - Albert Walicki

Hello, i’m Albert Walicki. i’m a frontend developer and cofounder of development & design agency Hype4 and education platform Hype4 Academy. I wrote a book for Junior Frontend developers called Frontend Unicorn.

BlogGlassmorphismAurora UIShapes in CSSUnique css illustrations

Get in touch!

Have a question or need a project? Contact me!

© 2020-present Albert Walicki. All Rights Reserved