Hi @amoeba25. π
Congratulation on finishing this challenge π .
Remember, we all face challenges when learning something new, and you're doing great!
I wanted to share a few tips that might make things a bit easier for you. β¨β¨
HTML Structure : β¨
- Use Semantic Elements:
Choose semantic HTML5 elements (like <header>, <nav>, <main>, <article>, <section>, <aside>, <footer>) to convey the meaning of different parts of your page. This improves accessibility and makes your code more readable.
- Div as a Generic Container:
- Use a <div> element instead of <section> if the purpose is simply to group content within a card component. <div> is a generic container that doesn't carry any specific semantic meaning, making it versatile for grouping elements.
- Article or Div for Card Content:
- If the content inside the card has a more independent or self-contained meaning, you might consider using an <article> or another <div> element for the card content.
- Consider File Organization:
- Separate Concerns:
- If your project is expanding, consider separating your HTML, CSS, and JS into distinct directories. This separation makes it easier to locate and manage files as your project grows.
- In your project repository are a lot of unneeded files!
β¨
- Flexbox Tips: β¨
Start Simple: Begin with basic layouts to get a feel for how Flexbox works. A row or column layout is a great starting point.
Master Flex Properties: Focus on understanding properties likeΒ flex-direction, justify-content, and align-items. These are the building blocks ofΒ Flexbox layouts.
Flex Containers vs. Items: Clarify the difference between properties that apply to the container (display: flex;) and those that apply to the items within (flex-grow, flex-shrink, flex-basis).
The more you use them, the more comfortable you'll become.
Don't hesitate to use online resources like MDN Web Docs or CSS-Tricks for quick reference and examples.
Also you can find the answers to your questions here:
Creating squishy padding and margin that adapt to the viewport
5 simple tips to making responsive layouts the easy way
Learn flexbox the easy way
Happy coding! π