HTML CSS examples for CSS Form:input
Show link on input:focus
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #search:focus + #results {<!--from w ww .j a v a 2 s .c o m--> display:block; } #results { display:none; } #results:hover { display:block; } </style> </head> <body> <input id="search" type="text"> <ul id="results"> <li> <a href="/1">Lorem i</a> </li> <li> <a href="/2">Lorem ip</a> </li> <li> <a href="/3">Lorem i</a> </li> </ul> </body> </html>