Skip to content

Commit a500902

Browse files
committed
change to padding example
1 parent 5863e66 commit a500902

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

learn/box-model/padding.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
.container {
99
border: 5px solid blue;
1010
margin: 40px;
11-
padding: 20px;
1211
}
1312

1413
.box {
@@ -24,6 +23,10 @@
2423
padding-bottom: 40px;
2524
padding-left: 4em;
2625
}
26+
27+
.container {
28+
padding: 20px;
29+
}
2730
</style>
2831
</head>
2932

@@ -34,13 +37,17 @@
3437
</div>
3538
</section>
3639

37-
<textarea class="playable playable-css" style="height: 120px;">
40+
<textarea class="playable playable-css" style="height: 180px;">
3841
.box {
3942
padding-top: 0;
4043
padding-right: 30px;
4144
padding-bottom: 40px;
4245
padding-left: 4em;
4346
}
47+
48+
.container {
49+
padding: 20px;
50+
}
4451
</textarea>
4552

4653
<textarea class="playable playable-html" style="height: 80px;">

0 commit comments

Comments
 (0)