Skip to content

Retail e-commerce / Case 21

Matching editorial product-story sections to design while keeping the HTML maintainable

A brand story can look simple in a design file but still require careful handling of responsive media, content order, image ratios, and optional video or text sections in the live storefront.

Responsive UIE-commerceFigmaHTMLCSS

What this solved for the business or user

The final page should feel like the approved design on both desktop and mobile, without creating a fragile section that breaks the next time the retailer swaps an image or updates a paragraph.

What was happening

Editorial watch pages used image-led story sections with carefully positioned copy. QA compared the live implementation directly against the supplied design, including image scale, copy width, section spacing, and whether optional content such as video should be included for a particular brand.

Why the obvious solution was not enough

The implementation needed visual fidelity without using one-off absolute positioning that only works for a single screenshot. Brand teams also needed to replace images later without rewriting the markup.

How the solution works

  1. Build the section around a stable content grid instead of positioning text by pixel coordinates from the design file.
  2. Choose image aspect ratios that match the intended composition and use object-fit only when the source art can tolerate cropping.
  3. When cropping would remove important watch details, use the full image width and let section height follow the asset rather than forcing a decorative crop.
  4. Set readable maximum widths for editorial copy so large screens do not turn paragraphs into long lines.
  5. Use CSS media queries to change stacking and spacing at clear breakpoints while keeping the same semantic content order.
  6. Treat video as an optional module with its own loading behavior instead of embedding it into every brand page whether or not the content needs it.
  7. Perform side-by-side QA against the design and then test with replacement imagery to make sure the section is reusable, not screenshot-specific.

What should be verified before shipping

  • Compare desktop and mobile screenshots with the approved design at the same viewport widths.
  • Swap in an image with a different natural aspect ratio and verify the layout fails gracefully.
  • Check text wrapping with shorter and longer editorial copy.
  • Confirm lazy-loaded media does not cause a large layout shift.
  • If video is enabled, test poster image, loading behavior, controls, and mobile playback separately from static-image sections.

What changed

The editorial sections matched the intended brand presentation while remaining understandable HTML and CSS that could be reused for future brand launches.

Reusable lesson

Visual fidelity and maintainability are not opposites. The key is to reproduce the design's relationships, hierarchy, spacing, proportion, and sequence, rather than hard-coding the coordinates of one screenshot.

Official documentation and standards