BOX MODEL BURGER

 <!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style.css">
    <title>Document</title>
</head>
<body>

<div class="box">
    <img class="box-img" src="Burger.jpg" alt="">

    <div class="content">

   

    <h3 class="title">Welcome T CSS</h3>
    <p class="description">Lorem ipsum, dolor sit amet consectetur adipisicing elit. Distinctio, dolorum?</p>
</div>

<a class="buff" href="">Explore Now</a>


</div>
   
</body>
</html>


// CSS FILE

.box{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 10px auto;
    width: 300px;
    border: solid rgb(221, 221, 221);
    border-radius: 10px 10px 0px 0px;
    border-width: 1px;

}

.box-img{

    width: 100%;
    border-radius: 10px 10px 0px 0px;

}

.title{
    margin: 6px 0px;
   



}

.description{
    font-size: 14px;
    margin: 0;
   


}

.content{

    padding: 10px;


}

.buff{
    display: inline-block;
    margin: 5px;

    border: solid grey;
    border-radius: 5px;
    border-width: 1px;
    padding: 5px;


}




Output : -
































Comments

Popular posts from this blog

Array Mapping and Filters Assignment

Rolling Dice

Basics Of Java Script Till DOM Beggining