{html code}
<html>
<head>
<link href='E:\html\.vscode\.vscode\style.css' type='text/css' rel='stylesheet'>
<title>Glowing Border</title>
</head>
<body>
<div class='box'>
<div class='text'>
<h2><u>Glowing Border</u></h2>
<p>HTML and CSS are technically not the programming languages, they are the scripting languages.
Usually used for the front-end development.</p>
</div>
</div>
</body>
</html>
{css code}
body{
background: black;
display: flex;
}
.text{
padding: 30px;
margin: 10px;
letter-spacing: 1px;
box-sizing: border-box;
color: white;
}
.box{
top: 20%;
left: 40%;
display: flex;
position: relative;
width: 300px;
height: 420px;
justify-items: center;
align-items: center;
background: rgb(0, 0, 0);
font-family: 'poppins',sans-serif;
animation: glow 4s linear infinite;
}
.box::before{
display: flex;
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
z-index: -1;
content: '';
}
.box::after{
display: flex;
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
z-index: -1;
content: '';
filter: blur(20px);
}
.box::before,
.box::after{
background: linear-gradient(125deg, #03cdff, #a6ff01);
}
This is how the final product will look! |
Looks awesome.
ReplyDeleteThanks man !
Delete