HTML CSS examples for CSS Selector:active
CSS :active selector taking effect
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .project-download {<!-- ww w . j a va 2 s . c o m--> color:Chartreuse; background-color:yellow; padding:11px; position:relative; text-align:center; font-size:25px; font-weight:bold; box-shadow:2px 2px 0 0 blue, 3px 3px 0 0 pink, 4px 4px 0 0 OrangeRed, 5px 5px 0 0 grey, 6px 6px 6px 0 BlueViolet; -webkit-box-shadow:2px 2px 0 0 Chartreuse, 3px 3px 0 0 yellow, 4px 4px 0 0 blue, 5px 5px 0 0 pink, 6px 6px 6px 0 OrangeRed; -moz-box-shadow:2px 2px 0 0 grey, 3px 3px 0 0 BlueViolet, 4px 4px 0 0 Chartreuse, 5px 5px 0 0 yellow, 6px 6px 6px 0 blue; border-radius:11px; -webkit-border-radius:11px; -moz-border-radius:11px; -webkit-transition:background-color 0.3s linear; transition:background-color 0.3s linear; } .project-download:active { box-shadow:2px 2px 6px 0 pink; -webkit-box-shadow:2px 2px 6px 0 OrangeRed; -moz-box-shadow:2px 2px 6px 0 grey; top:5px; left:5px; } .project-download:hover { background-color:BlueViolet; } </style> </head> <body> <a href="#" class="project-download">Lorem ip</a> </body> </html>