Html card design

technical talkiess
0

 Css cards :- 


<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Html card Here </title>

</head>

<style>

    *{

        padding: 0;

        margin: 0;

    }

    body{

    background-color: lightgray;

    }

    .container{

       

        /* border: 1px solid black; */

    }

    .card {

        margin:12px  0px;

        display: flex;

        justify-content: center;

        align-items: center;

        flex-direction: column;

        background-color: rgb(206, 203, 203);

    }

    .card .item{

        border: 1px solid yellow;

        background-color: rgb(222, 206, 206);

        background-color: white;

        border-radius: 20px;

        padding: 23px;

    }

    .card .item img{

        width: 200px;

        border-radius: 9px;

        border: 2px solid red;

        margin: 10px;


    }

    .label{

        margin: 7px;

    }

    .label span{

        border: 1px solid rgb(180, 173, 173);

        padding: 6px;

        margin: 2px;

        border-radius: 16px;

       

    }

    .item h3{

        padding: 12px;

        margin: 2px ;

    }

    .item p{

        height: auto;

        width: 200px;

        line-height: 25px;

        padding: 12px;

        text-align-last: justify;

    }

    .item button{

        padding: 15px;

        display: block;

        margin: 12px auto;

        background-color:lightblue;

        color: blue;

        border: 0px solid black;

        border-radius: 10px;

        cursor: pointer;

    }

    .item button:hover{

        background-color: white;

        color: black;

        border: 1px solid black;

    }

</style>

<body>

    <div class="container">

        <div class="card">

            <div class="item">

                <img src="./personal porfolio/img/hg-back.jpg" alt="This is the cards tutorila">

                <div class="label">

                    <span>Test</span>

                    <span>Test 2</span>

                </div>

                <h3>

                    Lorem ipsum, dolor

                </h3>

                <p>

                    Lorem ipsum dolor sit amet consectetur adipisicing elit. Quas ullam mollitia incidunt tempora delectus, sit at saepe, quam a doloremque, nisi omnis eaque.


                </p>

                <button type="button" class="btn">Read More</button>

            </div>

        </div>

    </div>

</body>

</html>
Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)