Design comparison
Solution retrospective
Sorry for the messy code writing. I am a beginner. Your suggestions are very important to me. Thank you from now.
Community feedback
- @kem522Posted about 3 years ago
Hi there, good work!
I have a couple of pieces of advice for you.
The first is that for out HTML to be accessible and not repetitive it is better not to have separate markup for the desktop header and the mobile header. Instead it's best to have the content only once and then use CSS and media queries to style it differently at different breakpoints. Here is an example of how to do that: https://jsfiddle.net/kmturley/o45weyvj/
The other is that you have overloaded some of your elements with classes for example
<div class="designed-text-div freeopen-text-div">
. In this case all of the rules of the first class are overwritten by the rules in the second class since they both have just width and padding so you should remove the first class from this element.Also, for this element
<p class="designed-text freeopen-text">
there is no class calledfreeopen-text
so that should be deleted. If you intend to usedesigned-text
here as well then the classname should be more generic as thedesigned
part suggests it belongs to the content higher up the page.Hope that was helpful! Happy coding!
Marked as helpful1@bbnos202Posted about 3 years ago@kem522 Thank you for your help. I will try to fix it. :)
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