If you've ever designed a responsive layout, you've probably used units like %
, vw
, em
, or rem
. But in PaneFlow, you'll notice something different - we rely heavily on a newer, more dynamic unit called cqw
.
So what is cqw
, and why is it so important to how PaneFlow works?
cqw
?cqw
stands for Container Query Width - it's a CSS unit that's relative to the width of the element's container, not the viewport.
1cqw
= 1% of the container's widthvw
(viewport width), but is scoped to a specific parent containerIt belongs to the CSS Container Queries spec, a modern approach to responsive design that's supported in all major browsers.
cqw
in PaneFlowPaneFlow is a block-based slideshow system where each pane acts like a container. And that's where cqw
shines.
Instead of sizing and positioning elements based on the full page or screen, we size everything relative to the pane itself. That means:
In the PaneFlow Studio, you'll see cqw
used for:
5cqw
for responsive type)translateX(10cqw)
, translateY(-5cqw)
Because everything is defined in cqw
, your slideshow behaves like a self-contained, responsive system - no matter where you embed it or how big it appears on screen.
vw
?Using vw
(viewport width) ties your layout to the entire browser window - which can break layouts inside smaller containers like:
By using cqw
, PaneFlow ensures your presentation always scales within its own boundary, making it modular and portable.
1cqw
= 1%
of a container's width