Hello friends today we will create a Neon Button with only HTML & CSS.
SOURCE CODE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Neon Buttons</title>
<style>
body {
padding: 0;
margin: 0;
font-size: 20px;
font-family: sans-serif;
}
.container {
background-color: black;
display: flex;
justify-content: space-around;
align-items: center;
height: 100vh;
width: 100%;
}
a {
text-transform: uppercase;
font-weight: 700;
text-decoration: none;
border-radius: 50px;
letter-spacing: 5px;
padding: 30px;
transition: all .5s;
}
#btn1 {
color: rgb(1, 255, 1);
border: 2px solid rgb(1, 255, 1);
}
#btn2 {
color: rgb(3, 217, 255);
border: 2px solid rgb(3, 217, 255);
}
#btn3 {
color: rgb(255, 1, 1);
border: 2px solid rgb(255, 1, 1);
}
#btn1:hover {
background-color: rgb(1, 255, 1);
color: black;
box-shadow: 0px 0px 50px rgb(1, 255, 1);
}
#btn2:hover {
background-color: rgb(3, 217, 255);
color: black;
box-shadow: 0px 0px 50px rgb(3, 217, 255);
}
#btn3:hover {
background-color: rgb(255, 1, 1);
color: black;
box-shadow: 0px 0px 50px rgb(255, 1, 1);
}
</style>
</head>
<body>
<div class="container">
<a href="#" id="btn1">button</a>
<a href="#" id="btn2">button</a>
<a href="#" id="btn3">button</a>
</div>
</body>
</html>
NOTE- If you like our work then please subscribe our channel Cool Programming Projects
and follow our facebook page @CoolProgrammingProjectsRJ.
How can.I.download source code
ReplyDeletePost a Comment