|
1 | 1 | # `09` Beautify |
2 | 2 |
|
3 | | -This is a real life example sponsored by one of our students; in this case, he was trying to make his website look like this: |
| 3 | +This is a real-life example sponsored by one of our students; in this case, they were trying to make their website look like this: |
4 | 4 |
|
5 | 5 |  |
6 | 6 |
|
7 | | -Right now, some of the divs don't show, others show in a different way, etc. |
| 7 | +However, the code contains several errors that prevent it from displaying correctly. Your task is to **fix the HTML and CSS** so that it meets the following technical requirements. |
| 8 | + |
| 9 | +- Display **6 visible boxes** (`div`), each with a number from 1 to 6 inside a `<strong>` tag. |
| 10 | +- Each box must have a unique `id`: `div1`, `div2`, ..., `div6`. |
| 11 | +- All `div`s must have **exact dimensions** and **specific background colors**. |
| 12 | +- Some boxes must have `border-radius` and custom text color. |
8 | 13 |
|
9 | | -The problem here is some missing opening and closing tags, some CSS selectors are duplicated and some `div` have the same `#id`. |
10 | 14 |
|
11 | 15 | ## 📝 Instructions: |
12 | 16 |
|
13 | | -1. Fix the code and make it look how it was supposed to look. |
| 17 | +1. Each `div` must be `150px` wide and `100px` high. |
| 18 | +2. `div1` and `div5` must have a **red background**. |
| 19 | +3. `div2` and `div4` must have a **blue background**. |
| 20 | +4. `div3` must have a **yellow background**. |
| 21 | +5. `div6` must have a **black background**. |
| 22 | +6. `div2`, `div3`, `div5`, and `div6` must have **white text** and `border-radius: 25px`. |
| 23 | +7. `div1` and `div4` must have `border-radius: 50px`. |
| 24 | +8. Each `div` must contain a number from 1 to 6, wrapped in a `<strong>` tag. |
| 25 | + |
14 | 26 |
|
15 | | -## 💡 Hint: |
| 27 | +## ⚠️ Important: |
16 | 28 |
|
17 | | -+ The name of the next id's should follow the pattern (`div1`, `div2`, `div3`, `div4`, ..., `div6`) |
| 29 | +Do not remove or modify the `<head>` elements such as `<meta>`, `<title>`, or `<link>`. |
0 commit comments