Beautify buttons with dynamic pseudo-class selectors

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Use dynamic pseudo-class selector to beautify buttons</title>
<style type="text/css">
*{
text- align: center;
}
/*Button effect in default state*/
.btn{
background-color: #0074cc;
*backgroud-color: #0075cc;
/*CSS3 gradient makes background image*/
background-image:linear-gradient( top,#0088cc,#0055cc);
background-repeat: repeat-x;
display: inline-block;
*display:inline;
border: 1px solid #ccc;
*border:0;
border-color: #ccc;
/*CSS color module */
border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
border-radius: 6px;
color: #ffffff ;
cursor: pointer;
/* pointer cursor is rendered as a pointer (one hand) to indicate links */
font-size: 20px;

text-decoration: none;
/*Remove underline
*/
font-weight: normal;
padding: 14px 24px;
text-align: center;
/* CSS text shadow feature*/
text-shadow: 0 -1px 0 rgb(0,0 ,0,0.25);
vertical-align: middle;
*zoom:1;
}
/* Button effect in hover state*/
.btn:hover{
background-position: 0 -15px;
background-color: #0055cc;
*bakground- color:#004ab3;
color: #ffffff;
text-decoration: none;
text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
/* CSS animation effect*/
transition: background-position 0.1s linear ;

}
/* Button effect when clicked*/
.btn:active{
background-color: #0055cc;
background-color: #004099 \9;
background-image: none;
outline: 0;
/* CSS box shadow feature*/
box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
color: rgba(255,255,255,0.75);
}
/* get Focus button effect*/
.btn:focus{
outline: thin dotted #333;
outline: 5px auto;
outline-offset: -2px;
}
</style>
</head>

<body>
<div>
<a href="#" class="btn">View project on GitHub</a>
</div>
</body>
</html>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325165290&siteId=291194637