Skip to content

Commit 0bb833a

Browse files
committed
adding background color
1 parent 64aa93f commit 0bb833a

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

learn/selectors/adjacent.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111

1212
<style class="editable">
1313
h1 + p {
14-
font-size: 120%;
1514
font-weight: bold;
15+
background-color: #333;
16+
color: #fff;
17+
padding: .5em;
1618
}
1719

1820
</style>
@@ -30,10 +32,12 @@ <h1>A heading</h1>
3032
</article>
3133
</section>
3234

33-
<textarea class="playable playable-css" style="height: 80px;">
35+
<textarea class="playable playable-css" style="height: 100px;">
3436
h1 + p {
35-
font-size: 120%;
3637
font-weight: bold;
38+
background-color: #333;
39+
color: #fff;
40+
padding: .5em;
3741
}
3842
</textarea>
3943

learn/selectors/general.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111

1212
<style class="editable">
1313
h1 ~ p {
14-
font-size: 120%;
1514
font-weight: bold;
15+
background-color: #333;
16+
color: #fff;
17+
padding: .5em;
1618
}
1719

1820
</style>
@@ -28,12 +30,13 @@ <h1>A heading</h1>
2830
</article>
2931
</section>
3032

31-
<textarea class="playable playable-css" style="height: 80px;">
33+
<textarea class="playable playable-css" style="height: 100px;">
3234
h1 ~ p {
33-
font-size: 120%;
3435
font-weight: bold;
35-
}
36-
</textarea>
36+
background-color: #333;
37+
color: #fff;
38+
padding: .5em;
39+
}</textarea>
3740

3841
<textarea class="playable playable-html" style="height: 140px;">
3942
<article>

0 commit comments

Comments
 (0)