-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path41flexgrow.html
30 lines (26 loc) · 909 Bytes
/
41flexgrow.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>flex direction</title>
<style>
#container{height: 600px;width: 1000px;;margin:5px;border:5px solid rgba(0, 4, 255, 0.836);padding: 10px;background-color: rgb(205, 255, 245);display: flex;justify-content: center;}
.grow{height: 300px;width: 200px;background-color: black;border: 5px solid blue;margin:5px;text-align: center;;}
#karn{text-align: center;}
#grow1{flex-grow:1;order: 2;}
#grow2{order: 1;}
#grow3{order:4}
#grow{order:3}
</style>
</head>
<body>
<header><h1 id="karn">karnx</h1></header>
<div id="container">
<div id="grow1" class="grow">karn1</div>
<div id="grow2" class="grow">karn2</div>
<div id="grow3" class="grow">karn3</div>
<div id="grow4" class="grow">karn4</div>
</div>
</body>
</html>