content: counter(list);


testbitcoin
<!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">
    <link rel="preconnect" href="https://fonts.gstatic.com">
    <link rel="stylesheet" href="css.css"><!--यो लिङ्कले बाहिर लेखिएको सि एस एस फाइललाइ जोडेको छ ।-->
    <title>Document</title>
</head>
<body>
        
        <h1>यसले वेबपेजको लिस्ट गन्ने काम गर्दछ ।</h1>
        <ul>
            <li>एक</li>
            <li>दुइ</li>
            <li>तिन</li>
            <li>चार</li>
            <li>पाँच</li>
        </ul>
    <p>  </p>
</body>
<style>
    ul{
        list-style: none;
    }
    li::before{
        content: counter(list);
        width: 40px;
        width: 40px;
        font-size: 20px;
        background-color: blue;
        color: white;
        border: solid 2px gray ;
        border-radius: 20px;
        display: inline-block;
        margin:20px;
        text-align: center;
        
    }
    li{
        counter-increment: list;
       
    }
</style>

</html>

Related post

जवाफ लेख्नुहोस्

तपाईँको इमेल ठेगाना प्रकाशित गरिने छैन। अनिवार्य फिल्डहरूमा * चिन्ह लगाइएको छ