How to create Neon Text
- Web Coding

 - Sep 6, 2020
 - 1 min read
 
Today I will be teaching you how to create neon text using only HTML and CSS
HTML
<!DOCTYPE html>
<html lang="en">
<head>
 <meta charset="UTF-8">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
 <title>Document</title>
 <link rel="stylesheet" href="style.css">
</head>
<body>
 <p>Hello</p>
</body>
</html>CSS
body{
 min-height: 100vh;
 display: flex;
 align-items: center;
 justify-content: center;
 background-color: black;
}
p{
 text-transform: uppercase;
 font-size: 104px;
 color: white;
 text-shadow: 0 0 5px #fff, 0 0 10px #fff,
 0 0 20px #46008C, 0 0 25px #46008C,
 0 0 30px #46008C, 0 0 35px #46008C,
 0 0 40px #46008C
    ; 
}If you found this blog post helpful don’t forget to check out my other projects and if you want more content follow me on
YouTube: https://www.youtube.com/channel/UC2nxqB2usQIS2c8zwVZKWEQ
Instagram: https://www.instagram.com/coding_for_the_web/
Twitter: https://twitter.com/LearnWebCoding



Comments