blob: 8215c1433c153396d301f063bf768af8f06ef935 (
plain)
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
|
<!DOCTYPE html>
<style>
#container {
width: 200px; height: 50px;
background-color: orange;
position: relative;
}
.square {
position: absolute;
top: 0;
left: 0;
width: 50px;
height: 50px;
background-color: blue;
}
.second {
left: 100px;
}
</style>
<p>You should see four equally sized squares below. Two blue, and two orange.</p>
<div id="container">
<div class="square"></div>
<div class="second square"></div>
</div>
|