<!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{
width: 100%;
height: 500px;
border: 3px solid black;
border-radius: 6px;
display: flex;
flex-direction: row;
/* 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{color: white;
border: 2px solid red;
margin: 5px;
padding: 5px;
background-color: blue;
height: 150px;
width: 200px;
}
#item1{
/* order: 3;
flex-shrink: 2; */
flex-basis: 320px;
}
#item2{
/* order: 1;
flex-shrink: 3; */
flex-basis: 150px;
}
#item3{
/* order: 40;
flex-shrink: 4; */
/* flex is short hand for grow shrink and basics */
flex: 3 2 400px;
align-self: center;
align-self: stretch;
}
</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:
Post a Comment