Design comparison
Solution retrospective
I am most proud of the improvements I made to accessibility with HTML and my increased proficiency in using CSS Grid.
What challenges did you encounter, and how did you overcome them?I had an issue with spacings that weren't whole numbers when using rem units and scaling them properly. I overcame this by using CSS variables and em units to help scale with the changing font size on smaller screens.
What specific areas of your project would you like help with?I would like further help and pointers with accessibility. Additionally, if there are any tips to improve spacing or best practices I didn't use, I'd appreciate any feedback.
Community feedback
- @Alex-Archer-IPosted 5 months ago
Hi!
Congrats with another challenge. That's a cool one, well done =)
Here are a couple of suggestions =)
The
nav
tag's purpose is to serve for navigation through the page or the site. So, it doesn't really fit here. Also there is a list of links, so it's better to useul
tag withli
.<ul> <li><a href="#">It's a link here!</a></li> ...and more links here </ul>
There is not necessary to wrap
p
orimg
in the other tags. You can style it directly. It could be more simplier layout here.<img src="" alt=""> <h1>Jessica Randall</h1> <p>London, United Kingdom</p> <p>"Front-end developer and avid reader."</p> <ul> <li><a href="#">It's a link here!</a></li> ...and more links here </ul>
Oh, and why do you apply
font: inherit
for every selector? I studied your css but can't find where it could be useful (but maybe I can't catch something =)).Marked as helpful0@jdgarcia277Posted 5 months ago@Alex-Archer-I Thank you for the advice! I'll work on making those changes.
Regarding the last point, font: inherit; is part of my CSS reset sheet that I use. From what I understand, it's mainly beneficial for form elements because they don't inherit font properties from your CSS by default and instead use the browser's stylesheet. While this page doesn't have any form elements, I include this rule as a best practice to ensure consistency and prepare for when these elements are used in the future.
0@Alex-Archer-IPosted 5 months ago@jdgarcia277
Oh, I oversighted that you declared
font-family
andfont-size
at theroot
! Now it has much more sense =)It is a most interesting use of
clamp
I have seen this far! I just trying to find good clamp patterns. Guess I should follow you now.And I forgot to tell you that it's recommended to add
role="list"
toul
andol
tags if you change theirdisplay
or appearance, cos Safari screen readers have issues with recognizing them.By the way, I wonder if declaring
font-size
in aroot
is a good idea? I meanroot
takes this value from the browser settings. And what happened if user change them? Will your value overwrite browser's or be overwritten? Hm...0@jdgarcia277Posted 5 months ago@Alex-Archer-I
I completely overlooked the side effects of declaring
font-size
inroot
. From what I could find, declaring this will over-ride browsers and users. So if a user uses a larger font size for accessibility, this would be taking that away from them. There are some tips in this css-tricks article that I'm going to use from now on. I'll have to adjust my clamp calculations a bit, but that's not a big deal.Thanks for pointing this out! Learning a lot of new things today.
0@Alex-Archer-IPosted 5 months ago@jdgarcia277
That's interesting article, though I really suggest you not to use the
62.5%
trick. Sorry, right now I can't find source about issues it creates. I'll search for it later. Besides, I can't see how usingclamp
withrem
units into thebody
contradicts the core idea of this article. I mean we still use values which depends on user's setting.Anyway, thank you too =) I learned new things too. That's why I like this place - you can find cool people, learn something and help someone =)
Oh, maybe this would be help for clamp calculations =)
0@Alex-Archer-IPosted 5 months ago@jdgarcia277
Ok, I can't find the article I read once, but I've found something better and get a few tips for myself from there =) Here the part about 62.5% thing.
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