Skip to content

Commit d299f38

Browse files
authored
fix: Update grouping selectors solution to match desired outcome image (#566)
Signed-off-by: Namit Arjaria <[email protected]>
1 parent 54a2c47 commit d299f38

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

foundations/03-grouping-selectors/README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ Let's build a little off the previous exercise. Here, you're going to give two e
44

55
This will help you further practice adding classes and using class selectors, so be sure you add the class attribute in the HTML file. For the remainder of these exercises, the format of any colors is entirely up to you; we trust you'll practice using the different values! The properties you need to add to each element are:
66

7-
* **The first element**: a black background, white text color, and a bold font weight
8-
* **The second element**: a yellow background
9-
* **Both elements**: a font size of 28px and a list of fonts containing `Helvetica` and `Times New Roman`, with `sans-serif` as a fallback
7+
- **The first element**: a black background and white text
8+
- **The second element**: a yellow background
9+
- **Both elements**: a font size of 28px and a list of fonts containing `Helvetica` and `Times New Roman`, with `sans-serif` as a fallback
1010

1111
## Desired Outcome
12-
![desired outcome](./desired-outcome.png)
1312

13+
![desired outcome](./desired-outcome.png)
1414

1515
### Self Check
16+
1617
- Does each element have a unique class name?
1718
- Did you use the grouping selector for styles that both elements share?
1819
- Did you make separate rules for the styles unique to each element?
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
.inverted,
32
.fancy {
43
font-family: Helvetica, "Times New Roman", sans-serif;
@@ -8,9 +7,8 @@
87
.inverted {
98
background-color: black;
109
color: white;
11-
font-weight: bold;
1210
}
1311

1412
.fancy {
1513
background-color: yellow;
16-
}
14+
}

0 commit comments

Comments
 (0)