Mobile View Template design With CSS

Card design :-

CODE

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Template_design</title>
    <style>
        body{
            text-aligncenter;
            margin0;
            padding:0;
        
        }
        #container{
            background-color:rgb(151313);
            positionabsolute;
            width:17%;
            top10%;
            left40%
            border-radius15px;
            colorwhite;
        }
        .head-text h1{
            margin-top10px;
            font-size3.3rem;
            letter-spacing7px;
            font-weight500;

        }
       
        .side-number h2 {
            margin0;
            margin-left15px;
            margin-bottom0;
            text-alignleft;
            font-weightnormal;
            transform-origin:0;
            transform:rotate(-90deg);
        }
        .side-number {
            margin-top80px;
            margin-left10px;
        }

       .side-hr{
            background-color:rgb(204182182) ;
            margin0;
            margin-top:-6px;
            margin-left15px;
            margin-bottom15px;
            height50px;
            width0.1px;
            border0.3px solid;
        }
        .img{
            background-colorlightgray;
            positionabsolute;
            width78%;
            height59%;
            left20%;
            top10%;
        }
        .down-text h3{
            text-alignleft;
            margin-top0px;
            margin-left44px;
            margin-bottom:0 ;
            font-weight500;
            colorrgb(204182182);
        }
        .down-hr{
            background-color:gray;
            margin-left45px;
            width23px;
            border0.3px solid;
        }
        .footer-text{
            colorrgb(197174174);
            font-size0.65em;
            margin-left-67px;
            margin-bottom15%;
        }
        *::selection{
            user-selectnone;
        }
    </style>
</head>
<body>
    <div id="container">
        <div class="head-text">
            <h1>YORK</h1>
        </div>
        <div class="side-number">
            <h2 class="num1">03</h2>
            <hr class="side-hr">
            <h2 class="num2">02</h2>
        </div>
        <div>
            <div class="img">
                <img src="resources/v.jpg" width="100%" height="100%" none>
            </div>
            <div class="down-text">
                <h3>Exclusive Offer<br>Every Week</h3>
                <hr class="down-hr">
                <p class="footer-text">SHOP NOW</p>
            </div>
        </div>
    </div>
</body>
</html>

RESULT

******



Comments

Popular Posts