How to use it
Enter a container width and a gutter. The tool splits the space so the main column and the side column sit in the ratio phi. Levels 2 and 3 each split the smallest column again in phi.
The preview draws each column with its pixel width. The CSS uses fr units, so the columns keep their widths in proportion to each other as the container shrinks, while the gaps stay fixed in px. Below 760 px the CSS stacks the columns in one. Avoid forcing every page into this split. Try it for article pages, dashboards and landing sections where one area should lead.
Try this
- Set the gutter first, then the width.
- Use Levels 2 for a main column with a two-part sidebar.
- Copy the CSS and check it at phone width.
Questions
Is the ratio exact?
Yes at each split, at the full container width. The gutter is taken out first and the rest is split in phi: main to the whole side block, its inner gutter included, and each further split the same way. Other pairs, such as main to aside-a, are not in phi. In a narrower container the gaps stay fixed in px, so with two or three levels main to side moves a little away from phi.
Can I put the main column on the right?
Yes. Set Main column to Right. The columns are listed in the reverse order.