Thursday 27 May 2021

flexibility



<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flexibility boes</title>
</head>
<style>
.container{
    width100%;
    height500px;
    border3px solid black;
    border-radius6px;
  displayflex;
  flex-directionrow;
  /* flex-direction: row;
  flex-direction: column;
  flex-direction: row-reverse;
  flex-direction: column-reverse;
  flex-direction: inherit;
  flex-direction: initial;
  flex-direction: unset;

 
 justify-content: space-around;
 justify-content: space-between;
 align-items: center;
 align-items: stretch; */
  
}
.item{colorwhite;
border2px solid red;
margin5px;
padding5px;
background-colorblue;
height150px;
width200px;
}
#item1{
/* order: 3;
flex-shrink: 2; */
flex-basis320px;
}
#item2{
/* order: 1;
flex-shrink: 3; */
flex-basis150px;
}
#item3{
    /* order: 40;
    flex-shrink: 4; */
    /* flex is short hand for grow shrink and basics */
    flex3 2 400px;
    align-selfcenter;
    align-selfstretch;
}


</style>
<body>
    <h1>This is flex course</h1>
    <div class="container">
        <div class="item" id="item1">frist</div>
        <div class="item" id="item2">Second</div>
        <div class="item" id="item3">third</div>
        <div class="item" id="item4">fourth</div>
        <div class="item" id="item5">fivth</div>
        <div class="item" id="item6">sixth</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...