-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (48 loc) · 1.28 KB
/
index.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="basic-stack.html">
<style>
body,
button,
input {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 15px;
}
body {
margin: 0;
max-width: 800px;
padding: 2em;
}
basic-stack {
border: 1px solid orange;
display: block;
}
img {
max-width: 100%;
opacity: 0.5;
}
</style>
</head>
<body>
<p>
Below you see a basic-stack element containing a landscape image and a
portrait image. The basic-stack has a border applied so you can see the
element's bounds. As you resize (or rotate) the window, note that the
basic-stack updates its size to be the maximium height and width of its two
children. Significantly, the source does not require that the heights of
those child elements be pre-calculated at design time and fixed in CSS.
</p>
<basic-stack>
<img src="../basic-shared/resources/images/image1.jpg">
<img src="../basic-shared/resources/images/image6.jpg">
</basic-stack>
<p>
Any elements below the basic-stack will remain in place regardless of
which of its children are visible.
</p>
</body>
</html>