Skip to content

Commit 3864835

Browse files
committed
how to highlight first paragraph
1 parent c905510 commit 3864835

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

howto/highlight_first_para.html

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<title>CSS Solutions: How to highlight the first paragraph</title>
7+
<link rel="stylesheet" href="styles.css">
8+
<style>
9+
10+
</style>
11+
12+
<style class="editable">
13+
.wrapper p:first-child {
14+
font-weight: bold;
15+
font-size: 130%;
16+
}
17+
</style>
18+
</head>
19+
20+
<body>
21+
<section class="preview">
22+
<div class="wrapper">
23+
<p>Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.</p>
24+
25+
<p>Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.</p>
26+
</div>
27+
</section>
28+
29+
<textarea class="playable playable-css" style="height: 120px;">
30+
.wrapper p:first-child {
31+
font-weight: bold;
32+
font-size: 130%;
33+
}
34+
</textarea>
35+
36+
<textarea class="playable playable-html" style="height: 200px;">
37+
<div class="wrapper">
38+
<p>Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.</p>
39+
40+
<p>Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.</p>
41+
</div>
42+
</textarea>
43+
44+
<!-- leave everything below here alone -->
45+
<div class="playable-buttons">
46+
<input id="reset" type="button" value="Reset">
47+
</div>
48+
</body>
49+
<script src="playable.js"></script>
50+
51+
</html>

0 commit comments

Comments
 (0)