-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathgrid-baseline-003-ref.html
More file actions
41 lines (39 loc) · 1.19 KB
/
grid-baseline-003-ref.html
File metadata and controls
41 lines (39 loc) · 1.19 KB
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
40
41
<!DOCTYPE html>
<style>
.flexbox {
display: flex;
}
.inline-flexbox {
display: inline-flex;
}
.flex-one {
flex: 1;
}
.inline-block { display: inline-block; }
.flexbox, .inline-flexbox { background-color: lightgrey; }
.border { border: 11px solid pink; }
.padding { padding: 13px; }
.margin { margin: 8px 0; }
.flexbox > div {
min-width: 0;
min-height: 0;
}
</style>
<div>
Should align with the bottom
<div class="inline-block border margin padding" style="background-color: pink">
<div class="flexbox border margin padding" style="width: 100px; height: 100px; background-color: pink">
<div style="width: 200px; overflow: scroll; background-color: lightgrey; margin: 10px 0px; border-top: 10px solid pink;"></div>
</div>
</div>
of the horizontal scrollbar.
</div>
<div>
Should align 10px below the
<div class="inline-block" style="background-color: pink">
<div class="flexbox" style="width: 100px; height: 100px; background-color: pink">
<div style="width: 200px; overflow: scroll; background-color: lightgrey; padding-bottom: 10px; margin: 10px 0px; border-top: 10px solid pink; border-bottom: 10px solid pink;"></div>
</div>
</div>
horizontal scrollbar, if one is visible.
</div>