Hello friends how are you , Today in this post "Neon Light Effect on Button using HTML and CSS" i am going to teach you how you apply Neon Light Effect on a Button in HTML using very simple lines of HTML and CSS code. If you wan to create something interesting using simple HTML and CSS then this post is for you.
If you want to understand this through video then watch this video i have explained it step by step live
Now i am going to explain step by step.
Step 1:Create a Folder: Just create a folder with any name and in any drive in your system, In my case my folder name is myhtml.
Step 2:Create an HTML file: Now open notepad and type the below code or you can copy this code for your personal use
<html>
<head>
<title>Neon Button</title>
<link rel="stylesheet" href="mycss.css">
</head>
<body>
<div class="container">
<div class="button">
BUTTON
</div>
</div>
</body>
</html>
body
{
margin: 0;
padding: 0;
background-color: black;
}
.container
{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.button
{
position: relative;
color: cyan;
letter-spacing: 15px;
border: 5px solid cyan;
padding: 50px;
font-size: 25px;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
transition: 1.5s;
border-radius:100px;
}
.button:hover
{
box-shadow: 0 5px 50px 0 cyan inset,0 5px 50px 0 cyan,
0 5px 50px 0 cyan inset,0 5px 50px 0 cyan;
text-shadow: 0 0 5px cyan;
}
0 Comments