Skip to content
npm

Layout & containers ​

Lesson 3Layout & containersWatch on YouTube
Chapters (8)

Rows and columns ​

The canvas is a stack of rows. Each row holds one or more columns, and each column holds exactly one element. You create layout by dragging:

  • Drop an element below another → new row.
  • Drop an element beside another → same row, new column.
  • Drop an element into a container → nested rows inside that container.

Widths ​

Every element has three width properties in the Design category:

PropertyApplies on
WidthDesktop
Tablet widthTablet viewport
Mobile widthMobile viewport

Use % for fluid layouts (50%, 33%) or px for fixed sizes. Fit content makes the element only as wide as its content, which suits buttons.

Test each breakpoint with the viewport switcher in Preview.

Container elements at a glance ​

ContainerUse for
PanelGrouping related fields under a heading, with background/border styling
Tabs / Tabs ProSwitching between sections without leaving the page
AccordionCollapsible sections
Dynamic panelA repeatable group where the user adds and removes entries (e.g. several addresses)
DialogContent that opens in a modal window
SplitterTwo resizable side-by-side areas
SpacerEmpty vertical space
DividerA horizontal separator line

Details and properties for each: Containers.

Element spacing ​

The global gap between rows is set in Form settings → Element spacing. Panels additionally have their own padding controls (desktop and mobile) in the Design category.

Web pages with Canvas ​

NGX View Builder is not only for forms. With Form settings → Render mode → Canvas (full width, no frame) a view becomes a plain web page: a landing page, a product page, a status page, an event sign-up.

What Canvas changes:

  • No page card, no page title bar, no Prev/Next, Validate or Submit buttons, no outer spacing. The view fills the full width.
  • All visible pages are shown one after another as one long page, so you can split a long page into pages in the builder just to keep it tidy.
  • On phones, columns without a Mobile width stack under each other, the way web pages do. Set a mobile width yourself where you want something to stay side by side.

Build the page from panels with Use as page section on (see Page section). A typical page:

  1. A hero section: dark colours, a background image with an overlay, minimum height 480px; inside it a Page title (level h1) and two buttons with Fit content on.
  2. A features section: a centred Page title, then a row of three Message cards or Stats cards. On phones they stack automatically.
  3. A call to action: a light grey background, content width 720px, a title, an email field and a button.

Elements placed directly on a Canvas page, outside a section, run edge to edge without any spacing around them, so keep content inside sections. Buttons and links are ordinary elements with actions; there is no built-in Submit bar on a Canvas.

Practical guidelines ​

  • Group related fields into panels; users scan grouped forms faster.
  • Prefer 2 columns maximum on data-entry forms; more becomes hard to scan.
  • Set mobile widths to 100% for nearly everything.
  • Use a Dynamic panel instead of duplicating the same fields ("Address 1", "Address 2"…).