Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 2 months ago

ecommerce product page using HTML CSS JS

Binh05•470
@Binh05
A solution to the E-commerce product page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What challenges did you encounter, and how did you overcome them?

Normally, I start by coding the desktop layout first, but this time I tried building the mobile layout first. However, I ran into a few challenges.

I think I should take a closer look at both the desktop and mobile designs beforehand, so I can plan the HTML structure better and decide which layout to develop first based on the context.

What specific areas of your project would you like help with?

I'm still working on optimizing the responsive behavior and positioning of some elements. For example, when resizing the screen, the cart icon or the "prev" and "next" buttons don’t stay centered within the lightbox.

I'm unsure whether the cart should be positioned relative to the img element or the entire container for better flexibility. I’d appreciate any tips on which CSS properties (like using percentages translate or flex/absolute positioning) work best for responsive alignment in these cases.

Also, I just realized that my laptop display was set to 75% zoom, so some parts of the UI might appear larger than intended when viewed at 100%.

I haven’t added a limit to the number of cart items or restricted the cart display height yet. Ideally, I want it to become scrollable when there are too many items — probably using overflow: scroll or similar.

Thanks in advance for any suggestions!

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Binh05's solution.

Join 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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License