Submitted about 3 years ago
My first use of Javascript on FrontEnd Mentor
@Geoff-Walker
Design comparison
SolutionDesign
Solution retrospective
Would really welcome some feedback specifically on the javascript as this is my first attempt using it on Front end mentor.
Community feedback
- @Jos02378Posted about 3 years ago
Hey @Geoff-Walker, good job on this solution!
Some suggestions for you:
- Try not to set a fixed height to an element, consider using
min-height
or not setting the height at all so the element can grow as the content grows. - You can try to watch this video on creating an accordion with less Javascript accordion video.
- You can try to follow a CSS naming convention called BEM. You can watch this video for more information Watch the video.
- You can try to use relative units like rem and em in the future. Here is a link to an article that explains when to use which unit see the article.
I hope this helps, good luck!
1@Geoff-WalkerPosted about 3 years ago@Jos02378
Thanks Joseph I'll give that a good study rem, em units confuse me at the best of time so that will really help!
Thankyou
0 - Try not to set a fixed height to an element, consider using
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