Skip to content

Commit 8274f08

Browse files
committed
Position demo: Updated sizes of elements.
1 parent a60a99e commit 8274f08

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

demos/position/default.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,29 @@
1414
<style>
1515
#parent {
1616
width: 60%;
17+
height: 40px;
1718
margin: 10px auto;
1819
padding: 5px;
1920
border: 1px solid #777;
2021
background-color: #fbca93;
2122
text-align: center;
2223
}
2324
.positionable {
24-
width: 75px;
25-
height: 75px;
2625
position: absolute;
2726
display: block;
2827
right: 0;
2928
bottom: 0;
3029
background-color: #bcd5e6;
3130
text-align: center;
3231
}
32+
#positionable1 {
33+
width: 75px;
34+
height: 75px;
35+
}
36+
#positionable2 {
37+
width: 120px;
38+
height: 40px;
39+
}
3340
.ui-flipped-top {
3441
border-top: 3px solid #000000;
3542
}
@@ -93,13 +100,13 @@
93100
</p>
94101
</div>
95102

96-
<div class="positionable">
103+
<div class="positionable" id="positionable1">
97104
<p>
98105
to position
99106
</p>
100107
</div>
101108

102-
<div class="positionable" style="width:120px; height: 40px;">
109+
<div class="positionable" id="positionable2">
103110
<p>
104111
to position 2
105112
</p>

0 commit comments

Comments
 (0)