selecting tool

+1 rishab kashyap · April 16, 2015


 
can u plz tell me or us about that whan we select any text on website it use default  selecting tool in blue color 
but some awesome web site have cool selecting tool
like 
http://www.digit.in/
http://www.nobelprize.org/
plz understand it 

Post a Reply

Replies

Oldest  Newest  Rating
0 Jason Knight · April 16, 2015
Hey buddy I think this is what you mean, in CSS you can use these to change the colour of the selected text like this.

#yourel::selection {
background: red;
}
#yourel::-moz-selection {
background:red;
}

Btw I think it is for webkit/gecko browers only.
0 rishab kashyap · April 16, 2015
kkk
thx
0 rishab kashyap · April 16, 2015
it is not working
what is yourel
i am using webmatrix 3
  • 1

HTML / CSS / Web Design

107,316 followers
About

Discuss, share, ask, learn and teach HTML5 and CSS3.

Links
Moderators