---
title: "Discussion on \"Changing the text selection color with CSS\" | Hashnode"
description: "Discussion on \"Changing the text selection color with CSS\". Did you know there is a CSS property that can change the user selection behavior?\nIt got some quite good support lately and is one of these cool gimmicks to have. It doesn't break anything for the browser that doesn't support it.\nThe end result will ..."
url: "https://hashnode.com/posts/changing-the-text-selection-color-with-css/5fa38c963e634314b5178809"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Changing the text selection color with CSS](https://h.daily-dev-tips.com/changing-the-text-selection-color-with-css?utm_source=hashnode&utm_medium=feed)

Did you know there is a CSS property that can change the user selection behavior? It got some quite good support lately and is one of these cool gimmicks to have. It doesn't break anything for the browser that doesn't support it. The end result will ...

Nov 5, 2020 · 2 min read · h.daily-dev-tips.com  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#css3](https://hashnode.com/tag/css3)
-   [#css-frameworks](https://hashnode.com/tag/css-frameworks)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#programming](https://hashnode.com/tag/programming)

## Written by

[Chris Bongers](https://hashnode.com/@dailydevtips)

@dailydevtips · Cape Town, SA

  
[View profile](https://hashnode.com/@dailydevtips)

Looking to get into development? As a full-stack developer I guide you on this journey and give you bite sized tips every single day 👊

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.

## Responses 5

Markdown supported · ⌘↵ to post

[Bell Omuboye](https://hashnode.com/@bellomuboye)

[Nov 5, 2020](https://hashnode.com/posts/changing-the-text-selection-color-with-css/5fa38c963e634314b5178809/comment/5fa4606f47631a19e811f648)

One of those little things that are nice to see. Thanks

[macfan](https://hashnode.com/@macfanpl)

[Nov 5, 2020](https://hashnode.com/posts/changing-the-text-selection-color-with-css/5fa38c963e634314b5178809/comment/5fa44ec13e634314b5179594)

super cool functionality and article.

[Rahul](https://hashnode.com/@RAHULISM)

[Nov 5, 2020](https://hashnode.com/posts/changing-the-text-selection-color-with-css/5fa38c963e634314b5178809/comment/5fa3d04d47631a19e811ee3d)

This is amazing when designing.

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Nov 5, 2020](https://hashnode.com/posts/changing-the-text-selection-color-with-css/5fa38c963e634314b5178809/comment/5fa3d04d47631a19e811ee3d#reply-5fa40a8347631a19e811f1bc)

Thanks Rahul!

Hopefully we'll see this more implemented soon 🤟

[Yogesh Chavan](https://hashnode.com/@myogeshchavan97)

[Nov 5, 2020](https://hashnode.com/posts/changing-the-text-selection-color-with-css/5fa38c963e634314b5178809/comment/5fa39f2b47631a19e811eb22)

it's super cool 👌

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Nov 5, 2020](https://hashnode.com/posts/changing-the-text-selection-color-with-css/5fa38c963e634314b5178809/comment/5fa39f2b47631a19e811eb22#reply-5fa3a29a47631a19e811eb89)

Thanks Yogesh!

And you'll actually rarely see it in the wild 🤷‍♂️

[Braydon Coyer](https://hashnode.com/@braydoncoyer)

[Nov 5, 2020](https://hashnode.com/posts/changing-the-text-selection-color-with-css/5fa38c963e634314b5178809/comment/5fa38f2947631a19e811e9a8)

This is a great feature, and can be extra fun when you randomly change the highlight color!

[blog.braydoncoyer.dev/change-text-highlight-color…](https://blog.braydoncoyer.dev/change-text-highlight-color-with-css)

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Nov 5, 2020](https://hashnode.com/posts/changing-the-text-selection-color-with-css/5fa38c963e634314b5178809/comment/5fa38f2947631a19e811e9a8#reply-5fa3912c3e634314b5178852)

That's amazing haha! Nice to see your switching colors in that one.
