HTML CSS examples for CSS Widget:Hover
Padding a navbar element on hover
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> div {<!--from w w w . java2s .c o m--> height:3em; width:7em; border-radius:6px; background-color:Chartreuse; display:inline-block; vertical-align:top; } div:hover { padding-top:3em; } </style> </head> <body> <div> Lorem ips </div> <div> Lorem ips </div> <div> Lorem ips </div> <div> Lorem ips </div> </body> </html>