Skip to content

Commit 20d36ee

Browse files
Merge pull request #483 from jasonguf/fix_images_in_index_page
04-chaining-selectors: Updated index.html and README.md
2 parents eac943f + 40b8b84 commit 20d36ee

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

foundations/04-chaining-selectors/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ With this exercise, we've provided you with a partially completed HTML file whic
77

88
We have two images for you to style, each with two class names, where one of the class names is shared. The goal here is to chain the selectors for both elements, so that each have a unique style applied, despite using a shared class selector. For example, you want an element that has both X and Y to have one set of styles, while an element with X and Z has a completely different set of styles. We included the original images as well, so that you can see how the styles you will be adding look in comparison, so do not add any styles to them.
99

10-
**Note:** Download and group the images in a separate "images" folder. Ensure correct image source paths in your HTML to avoid image loading issues. This is crucial for a cleaner project structure.
11-
1210
The properties you need to add to each element are:
1311

1412
* Make the element with both the `avatar` and `proportioned` classes 300 pixels wide, then give it a height so that it retains its original square proportions (don't hardcode in a pixel value for the height!).

foundations/04-chaining-selectors/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
<!-- Check image source path. Review Foundations lesson - Links and Images -->
1212
<!-- Use the classes BELOW this line -->
1313
<div>
14-
<img class="avatar proportioned" src="" alt="Woman with glasses">
15-
<img class="avatar distorted" src="" alt="Man with surprised expression">
14+
<img class="avatar proportioned" src="./images/pexels-katho-mutodo-8434791.jpg" alt="Woman with glasses">
15+
<img class="avatar distorted" src="./images/pexels-andrea-piacquadio-3777931.jpg" alt="Man with surprised expression">
1616
</div>
1717
<!-- Use the classes ABOVE this line -->
1818
<div>
19-
<img class="original proportioned" src="" alt="Woman with glasses">
20-
<img class="original distorted" src="" alt="Man with surprised expression">
19+
<img class="original proportioned" src="./images/pexels-katho-mutodo-8434791.jpg" alt="Woman with glasses">
20+
<img class="original distorted" src="./images/pexels-andrea-piacquadio-3777931.jpg" alt="Man with surprised expression">
2121
</div>
2222
</body>
2323
</html>

0 commit comments

Comments
 (0)