chatgpt coding challenge solution - Frontend Mentor
This is a solution for a coding challenge I recently completed. For my first project, I found it relatively easy to build, but encountered some challenges along the way.
Challenges Faced and Solutions
One of the challenges I faced was aligning a card in the center of the page. While I successfully aligned it horizontally, the vertical arrangement was not working as expected. Upon further investigation, I realized that the body of the page was only occupying the content area I provided. To overcome this, I set the body to full height, which resolved the alignment issue.
Areas Needing Improvement
Despite completing the project, I still have some confusion regarding CSS styles, particularly in positioning. I would appreciate guidance on this aspect to enhance my skills further.
Helpful Tips for Improvement
While reviewing my project, I received constructive feedback suggesting a few enhancements. One suggestion was to use a <main>
tag within the <body>
of my HTML for better organization and accessibility. Additionally, providing clear and descriptive alt
text for images is essential for accessibility and SEO purposes. It is recommended to utilize modern CSS resets to ensure consistency in design across various browsers.
When it comes to unit sizes, transitioning from px
to rem
can offer better scalability and responsiveness. Relative units like rem
adapt to user preferences and device settings, enhancing flexibility in design.

For more insights on CSS units, consider watching videos and using resources like converters to facilitate your learning process. Stay motivated and continue honing your coding skills to tackle new challenges with confidence!
Community Engagement
Join the Frontend Mentor community to participate in coding challenges, share resources, seek help, and engage in discussions on front-end development.

Stay Updated
Stay informed about new challenges, featured solutions, articles, and news by subscribing to Frontend Mentor's platform.
© Frontend Mentor 2019 - 2024