Thu May 26 2022

Gradient Underline

CSS2389 views

Gradient Underline

File Name: Gradent-underline.html

<!DOCTYPE html>
<html lang="en">
    <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>Gradient Underline</title>
    <link rel="preconnect" href="">
    <link rel="preconnect" href="" crossorigin>
    <link href="" rel="stylesheet"> 
        * {
            margin: 0;
            padding: 0;

        body { background-color: #383838; }
        section {
            width: 100%;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;

        h1 {
            color: #fff;
            font-size: 80px;
            font-family: 'Comfortaa', cursive;
            font-weight: bold;
            background: linear-gradient(30deg, #fa009a, #3afa00, #6600ec);
            background-repeat: no-repeat;
            background-size: 100% 4px;
            background-position: bottom;


Result Screenshot(s)

Gradient UnderlineWorking Sample0

We use cookies to improve your experience on our site and to show you personalised advertising. Please read our cookie policy and privacy policy.