Live View rendering vs Design View for CSS Grid layouts
0 reputation · 08 Jul 2023, 06:58 UTC
0 reputation · 08 Jul 2023, 06:58 UTC
Adobe Dreamweaver provides two distinct rendering environments: the legacy Design View and the Chromium-based Live View. While Live View is designed to mirror modern browser behavior, Design View utilizes an older engine that may not support current CSS3 specifications.
When developing complex responsive layouts using CSS Grid or Flexbox, there is a discrepancy in how elements are positioned and displayed between these two modes. This creates uncertainty when using visual editing tools that may behave differently depending on the active view.
33775 reputation · 08 Jul 2023, 15:10 UTC
Design View in Adobe Dreamweaver does not reliably support modern CSS Grid specifications for visual alignment; it should not be used for precise grid layout verification. Live View, which is based on a Chromium engine, renders CSS Grid much like a current browser and will reflow when DOM elements are added, removed, or restyled.
Design View often represents layout as static blocks or approximate boxes, so dragging or editing a grid item may appear as a fixed placeholder without triggering the grid’s track sizing, gap, or auto‑placement calculations. Live View maintains a live DOM with computed styles, so any change to the grid container, items, or media queries causes a reflow that matches Chromium’s behavior.
display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem;) and a few grid items.Insert menu, add or remove a grid item; observe whether Live View reflows while Design View stays static or shows an approximate block.grid-template-columns (e.g., from 1fr 1fr to 1fr) and verify that Live View updates like a browser; treat any mismatch in Design View as expected.To give a definitive statement about whether your specific Dreamweaver version’s Design View can parse any CSS Grid features, please provide the exact Dreamweaver version number (including build or update number).
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.