Skip to content

Commit 678c37e

Browse files
committed
Merge pull request jhu-ep-coursera#8 from jasonwr/master
Healed the befores for Lecture 21
2 parents f55a304 + 6d8c0e0 commit 678c37e

File tree

2 files changed

+6
-23
lines changed

2 files changed

+6
-23
lines changed

examples/Lecture21/floating-before.html

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,17 @@
1616

1717
#p1 {
1818
background-color: #A52A2A;
19-
float: left;
20-
height: 150px;
2119
}
2220
#p2 {
2321
background-color: #DEB887;
24-
float: right;
25-
height: 100px;
2622
}
2723
#p3 {
2824
background-color: #5F9EA0;
29-
clear: both;
3025
}
3126
#p4 {
3227
background-color: #FF7F50;
3328
}
3429

35-
section {
36-
clear: left;
37-
}
38-
3930
</style>
4031
</head>
4132
<body>
@@ -51,4 +42,4 @@ <h1>Floating Elements</h1>
5142

5243

5344
</body>
54-
</html>
45+
</html>

examples/Lecture21/two-column-before.html

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,22 @@
55
<title>Two Column Design</title>
66
<style>
77

8-
* {
9-
box-sizing: border-box;
10-
}
11-
128
div {
13-
/*background-color: #00FFFF;*/
9+
background-color: #00FFFF;
1410
}
1511
p {
1612
width: 50%;
17-
/*border: 1px solid black;*/
13+
border: 1px solid black;
1814
float: left;
19-
padding: 10px;
2015
}
2116

2217
#p1 {
23-
/*background-color: #A52A2A;*/
18+
background-color: #A52A2A;
2419
}
2520
#p2 {
26-
/*background-color: #DEB887;*/
21+
background-color: #DEB887;
2722
}
2823

29-
section {
30-
clear: left;
31-
}
3224

3325
</style>
3426
</head>
@@ -43,4 +35,4 @@ <h1>Two Column Design</h1>
4335

4436

4537
</body>
46-
</html>
38+
</html>

0 commit comments

Comments
 (0)