Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 72443

css text ::selection with round corners

$
0
0

I saw this selection in VSCode and monaco-editor and it looks really good :

enter image description here

SO I tried to recreate this, here is my effort :

#ta{
  font-size : 18px;
}
#ta::selection{
  background : rgba(173, 216, 130, 0.9);
  border : 1px solid transparent;
  border-radius : 15px;
}
<textarea id="ta"></textarea>

But this doesn't get the round corners effect(I hope you get it) like the one shown in the picture.

Please help me out. Answers appreciated.


Viewing all articles
Browse latest Browse all 72443

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>