Display Property in css

technical talkiess
0

 Display Property in css :- 

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

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

    <title>Css Displa property </title>

</head>

<style>

    .box{

        border: 2px solid red;

        /* isse aap width set nahi kar sakte ... aur padding to aur margin bhi top se nahi lagti hai isko solution hai ki inline-block kardo saab thi ho jayenga  */

        display: inline;

        width: 1200px;

        margin: 20px;

        padding: 23px;


    }

</style>

<body>

    <div class="container">

        <div class="box">

            This is the first div

        </div>

        <div class="box">

            This is the second div

        </div>

        <span>This is sapn</span>

        <span>This is second span</span>

    </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)