Skip to content

Commit a9f93b1

Browse files
authored
Merge pull request TheOdinProject#367 from dev-ethanjohn/feature/readme-and-html-updates
Feature/readme and html updates
2 parents 9ab349e + 21e8746 commit a9f93b1

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

foundations/04-chaining-selectors/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22

33
Credits for the images in this exercise go to [Katho Mutodo](https://linktr.ee/photobykatho_) and [Andrea Piacquadio](https://www.pexels.com/@olly?utm_content=attributionCopyText&utm_medium=referral&utm_source=pexels).
44

5-
With this exercise, we've provided you a completed HTML file, so you will only have to edit the CSS file. For this exercise, it's more important to understand how chaining different selectors works than how to actually add the attributes.
5+
6+
With this exercise, we've provided you with a partially completed HTML file which you'll configure. The purpose of this exercise is to focus on understanding how to chain different selectors, rather than solely adding attributes. Additionally, you'll have the chance to review your HTML images.
67

78
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.
89

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+
912
The properties you need to add to each element are:
1013

1114
* 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: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@
88
<link rel="stylesheet" href="style.css">
99
</head>
1010
<body>
11+
<!-- Check image source path. Review Foundations lesson - Links and Images -->
1112
<!-- Use the classes BELOW this line -->
1213
<div>
13-
<img class="avatar proportioned" src="./pexels-katho-mutodo-8434791.jpg" alt="Woman with glasses">
14-
<img class="avatar distorted" src="./pexels-andrea-piacquadio-3777931.jpg" alt="Man with surprised expression">
14+
<img class="avatar proportioned" src="" alt="Woman with glasses">
15+
<img class="avatar distorted" src="" alt="Man with surprised expression">
1516
</div>
1617
<!-- Use the classes ABOVE this line -->
1718
<div>
18-
<img class="original proportioned" src="./pexels-katho-mutodo-8434791.jpg" alt="Woman with glasses">
19-
<img class="original distorted" src="./pexels-andrea-piacquadio-3777931.jpg" alt="Man with surprised expression">
19+
<img class="original proportioned" src="" alt="Woman with glasses">
20+
<img class="original distorted" src="" alt="Man with surprised expression">
2021
</div>
2122
</body>
2223
</html>
Loading
Loading

foundations/04-chaining-selectors/solution/solution.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
</head>
1010
<body>
1111
<div>
12-
<img class="avatar proportioned" src="../pexels-katho-mutodo-8434791.jpg" alt="Woman with glasses">
13-
<img class="avatar distorted" src="../pexels-andrea-piacquadio-3777931.jpg" alt="Man with surprised expression">
12+
<img class="avatar proportioned" src="./images/pexels-katho-mutodo-8434791.jpg" alt="Woman with glasses">
13+
<img class="avatar distorted" src="./images/pexels-andrea-piacquadio-3777931.jpg" alt="Man with surprised expression">
1414
</div>
1515
<div>
16-
<img class="original proportioned" src="../pexels-katho-mutodo-8434791.jpg" alt="Woman with glasses">
17-
<img class="original distorted" src="../pexels-andrea-piacquadio-3777931.jpg" alt="Man with surprised expression">
16+
<img class="original proportioned" src="./images/pexels-katho-mutodo-8434791.jpg" alt="Woman with glasses">
17+
<img class="original distorted" src="./images/pexels-andrea-piacquadio-3777931.jpg" alt="Man with surprised expression">
1818
</div>
1919
</body>
2020
</html>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* Add CSS Styling */

0 commit comments

Comments
 (0)