Design comparison
SolutionDesign
Solution retrospective
I find difficult two things:
- I could not achieve setting the facebook icon with a perfect round border.
- I tried to write some javascript to display the error message under the input, it didn't work.
What is the best practice to set the width and height when its shift to desktop version? Is there any way to set the error message using only html/css?
Community feedback
- @vanzasetiaPosted over 2 years ago
Hello, Alberto! 👋
Regarding the issues that you have:
- For the Facebook icon, I'm not sure what causes it. Is the circle a part of the icon?
- The inline script needs to be put after the element is already rendered. Remember, HTML is parsed line by line which means that the
script
will not know there's an element with anid
ofmail
because it already runs before theform
element is found. So, I recommend putting it right before the closing tag of thebody
. Also, I recommend moving all the JavaScript to an external file. This way, everything will be on its own file.
Regarding your questions,
- There's no need to set
width
andheight
. I would strongly recommend only settingmax-width
to prevent the element from becoming too large on widescreen. - It's possible to do that, there's an article from CSS Tricks that will show you how to do that. However, I recommend doing the challenge with JavaScript since it is a JavaScript challenge.
Some recommendations from me.
- I suggest leaving the
alt=""
empty for the illustration image. It's a decorative image. - The most important content on the page is the logo. Without that information, screen reader users or a search engine would not know what your site/project is called.
- Those social media icons should be wrapped with anchor tags. They are actually social media links for the company.
- Changing the
html
or root font size can cause huge accessibility implications for those of the users with different font size or zoom requirements. Read what an accessibility expert (Grace Snow) has said about it.
That's it! Hope this helps.
Marked as helpful1
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