Thursday 27 May 2021

position in CSS

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>position</title>
    <style>
        .container{
border2px solid red;
width900px;
 height3444px;
 border-radius15px;      }
.box{
    border2px solid black;
    color:black;
    background-colorwhite;
    width100px;
    height100px;
    margin5px;
    floatleft;
padding5px;
border-radius10px;


}
#box2{
    positionfixed;
}
#box3{
position:sticky;
top2px;

}


    </style>
</head>
<body>
    <div class="container">
    <div class="box" id="box1">1</div>
    <div class="box" id="box2">Chat With Us</div>
    <div class="box" id="box3">fruits 
        grapes
        orange
    </div>
    <div class="box" id="box4">4</div>
    </div>
</body>
</html>

No comments:

Python if / else

 Python if / else a1 = int ( input (" Enter the number: \n ")) a2 = int ( input (" Enter the number: \n ")) a3 = int ( i...