Skip to content

Local search · English

    Design responsive layouts

    Responsive design is authored in the document’s CSS. Strukt does not keep a second set of per-device property overrides. A flexible layout should respond to the space available to its own container and to the content it holds.

    • Create a simple section with text and an image. Know which parent controls the layout before changing its children.
    1. Select the parent container and start with flexible Grid or Flexbox rules. Prefer gaps and padding over text characters or empty elements used as spacers. Avoid fixed widths that exceed the smallest intended screen.

    2. Use clamp() for fluid sizes when appropriate. For a component that changes layout with its available width, establish a CSS container and place an @container rule in the authored CSS. Keep the rule with the component it describes.

    3. Resize a Design frame and then inspect Preview at narrow and wide widths. Check long headings, navigation wrapping, image aspect ratios and form controls with actual content rather than only short sample labels.

    4. Publish the reviewed version and test the public page on a narrow viewport. Confirm that reading and keyboard order still follow the intended document order.

    • The page has no unintended horizontal scrolling, overlapping controls or clipped text at the widths you checked.

    When a rule appears ineffective, inspect the selected parent, container name and generated CSS. A viewport width change does not necessarily change a nested container’s width. Test the actual component context before adding more overrides.

    Applies to Strukt c02552848c92 · 2026-10-31