SVGs inside DIVs
✓ Published0🌍 Public
This example demonstrates a split-pane layout with two resizable regions, one styled with a red background and the other green, created using a flexbox container and the `body` element fixed to the viewport. The left pane contains an SVG element, which uses a `<rect>` with a gray fill and dimensions of 500 by 900 pixels, and is scrollable via `overflow: auto`. The right pane is initially empty, and D3 v5 is loaded but not yet used for any drawing. The page structure is defined by `index.html` with `styles.css` providing the layout, while no JavaScript beyond the included script tags is visible.
AI-generated descriptionAn example showing how to set up a split pane with two SVGs.
MIT Licensed