Design comparison
Solution retrospective
I am most proud of importing and hosting downloaded fonts
Community feedback
- @StroudyPosted about 2 months ago
Hello again my friend, Incredible work on this! You’re making great strides, and I have a couple of suggestions that might push it even further…
-
This should be in lowercase
<p>PERFUME</p>
and styled in CSS withtext-transform: uppercase;
, Keeping text lowercase in HTML improves accessibility and SEO. Usingtext-transform: uppercase;
in CSS separates content from style, ensuring screen readers interpret the text correctly. -
Avoid using
id
selectors for styling in CSS because they are too specific and hard to override, making your styles less flexible and maintainable. Instead, use class selectors (.
), which are reusable and more manageable, allowing for better control over your styles and easier updates.
<img id="fregance_img_desktop" src="images/image-product-desktop.jpg" alt="fregance"> <img id="fregance_img_mobile" src="images/image-product-mobile.jpg" alt="fregance">
-
Using
font-display: swap
in your@font-face
rule improves performance by showing fallback text until the custom font loads, preventing a blank screen (flash of invisible text). The downside is a brief flash when the font switches, but it’s usually better than waiting for text to appear. -
Line height is usually unitless to scale proportionally with the font size, keeping text readable across different devices. Best practice is to use a unitless value like
1.5
for flexibility. Avoid using fixed units likepx
or%
, as they don't adapt well to changes in font size or layout.
I hope you’re finding this guidance useful! Keep refining your skills and tackling new challenges with confidence. You’re making great progress—stay motivated and keep coding with enthusiasm! 💻
Marked as helpful0@miedzygalaktycznygitPosted about 2 months ago@Stroudy I didn't know about it, thanks for the help 😀
1@StroudyPosted about 2 months agoHey @miedzygalaktycznygit, We are all learning, I made the same mistakes and just passing on the knowledge that was passed on to me! You got this bro! 💪
0 -
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord