-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy path12_flexbox.html
40 lines (36 loc) · 868 Bytes
/
12_flexbox.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
31
32
33
34
35
36
37
38
39
<!DOCTYPE HTML>
<html>
<head>
<style>
head, style {display: block;}
[contenteditable] {-webkit-user-modify: read-write-plaintext-only;}
style:first-of-type {visibility:hidden;}
style:last-of-type {padding: 20px; font-size: 1.5em; white-space: pre; font-family: monospace; background-color: rgba(255,255,255,0.5);}
html {min-height:100%;}
div {border: 3px solid indianred; padding: 3px;}
div div {border-color: goldenrod;}
div:nth-of-type(2){border-style: dashed;}
</style>
<style contenteditable>
#container {
display: -webkit-flex;
-webkit-flex-direction: row;
}
#container div{
-webkit-flex: 20%;
}
#container div:nth-of-type(2){
-webkit-order: -1;
-webkit-flex: 40%;
}
</style>
<title>Flexbox</title>
</head>
<body>
<div id="container">
<div class="box">one</div>
<div class="box">two</div>
<div class="box">three</div>
</div>
</body>
</html>