Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

display pointer on hover close icon in search textbox

Tags:

html

css

I am using a input type search in my application. I want to display cursor:pointer when user mouse hover on x icon in search box , i tried to find out css for this but not find anything releated to this.

enter image description here

<input type="search">
like image 443
Ketan Modi Avatar asked Dec 06 '22 13:12

Ketan Modi


1 Answers

Perhaps something like this can work?

input[type="search"]::-webkit-search-decoration:hover,
input[type="search"]::-webkit-search-cancel-button:hover { 
    cursor:pointer; 
}
<input type="search">
like image 59
o01 Avatar answered Feb 13 '23 23:02

o01