Sub topic 10
Choosing a Layout for Your Page Type
This chapter assumes you know basic HTML and CSS, can name the usual parts of a page (header, navigation, hero section, call to action), and have read the earlier chapters on the F-pattern, the Z-pattern, and visual hierarchy. Here you will turn those ideas into a decision: given a page, which scanning pattern should guide the layout?
Start from the page, not the pattern
The F-pattern and the Z-pattern are not templates you pick from a menu. They describe how eyes tend to move over certain kinds of pages. The F-pattern appeared in eye-tracking studies of text-heavy pages. The Z-pattern is a layout heuristic from print design that fits pages with little text and a clear end point.
So the question is not "Which pattern do I like?" It is "What does this page contain, and what does the visitor want to do on it?" Three properties of the page do most of the work in answering that:
- Content density: how much text there is, and how it is broken up.
- Goal: whether the visitor is looking for information or being led toward one action.
- Structure: whether content is a long sequence, a few blocks, or a grid of equal items.
The decision criteria
| Page type | Content density | Visitor goal | Layout guide |
|---|---|---|---|
| Article, documentation, policy page | High | Find the answer | F-pattern friendly |
| Search results, product listings | Medium to high, repeated items | Compare and pick | F-pattern friendly, with a left-aligned column |
| Landing page, product home page | Low | Understand the offer, take one action | Z-pattern friendly |
| Sign-up or promo page | Very low | Take one action | Z-pattern friendly |
| Long marketing page with many sections | Mixed | Understand, then act | Section by section, see below |
| Dashboard or web app screen | Varies | Complete a task | Neither; design for the task |
Use the table as a starting point. If a page fits two rows, treat it as a mix and split the layout into regions.
F-pattern friendly layouts
Choose this when the visitor must find specific information in a lot of text. The earlier chapter described how people read the first line or two across, then a shorter line lower down, then move down the left edge. Your job is to make that left edge worth scanning.
In practice that means:
- Put the main point in the heading and in the first words of each paragraph or list item.
- Align text to the start edge of the reading direction, so the left edge is a clean line.
- Break long text into short paragraphs, lists, and subheadings.
- Bold a few key terms, not whole sentences.
- Keep important information near the top. Content far down the page and far to the right gets the least attention.
The snippet below shows a policy page built this way. Each heading states its conclusion, and each list item starts with a label.
<article>
<h1>Return policy: 30 days, free shipping labels</h1>
<p>You can return most items within 30 days. We email a prepaid label after you request a return.</p>
<h2>Refunds arrive in 5 to 7 business days</h2>
<ul>
<li><strong>Card payments:</strong> refunded to the original card.</li>
<li><strong>Gift cards:</strong> refunded as store credit.</li>
</ul>
<h2>Items that cannot be returned</h2>
<p>Opened software, personalized items and gift cards are final sale.</p>
</article>A reader who only looks at the headings still learns the three key facts: 30 days, 5 to 7 business days, and a list of exceptions. That is the test for an F-pattern friendly page.
Common F-pattern mistakes
- Vague headings such as "Details" or "More information". The eye lands on them and gets nothing.
- Key facts buried in the middle of a long paragraph. They sit where scanning attention is weakest.
- Centered body text. The left edge is ragged, so there is no consistent line to scan down.
- Important links placed far right in text-heavy rows. Few visitors reach them.
Z-pattern friendly layouts
Choose this when the page is sparse and has one main job. The idea is that the eye starts top left, crosses to the top right, sweeps diagonally to the bottom left, and finishes at the bottom right. You place elements along that route:
- Top left: logo or brand.
- Top right: navigation or a secondary action such as "Log in".
- The diagonal: the headline and a supporting image or short text.
- Bottom right: the main call to action.
The example below follows that route. The logo and navigation sit in the top bar, the headline and image form the middle, and the call to action sits bottom right.
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<style>
.page { max-width: 60rem; margin: 0 auto; padding: 1rem; }
.top, .bottom { display: flex; justify-content: space-between; align-items: center; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; padding: 4rem 0; }
.cta { padding: 0.75rem 1.5rem; background: #0b5fff; color: #fff; text-decoration: none; border-radius: 0.25rem; }
</style>
</head>
<body>
<div class='page'>
<header class='top'>
<a href='/'>Acme</a>
<nav><a href='/pricing'>Pricing</a> <a href='/login'>Log in</a></nav>
</header>
<main class='hero'>
<div>
<h1>Plan projects in minutes</h1>
<p>One shared board for tasks, deadlines and files.</p>
</div>
<img src='board.png' alt='Project board with three columns of tasks'>
</main>
<footer class='bottom'>
<p>Used by small teams worldwide</p>
<a class='cta' href='/signup'>Start free trial</a>
</footer>
</div>
</body>
</html>The Z-pattern is not a measured behavior in the way the F-pattern is. Treat it as a way to check that a sparse page has a clear order: brand, then offer, then action. If the path from the first element to the action is obvious, the layout works, whether or not eyes trace a perfect Z.
Common Z-pattern mistakes
- Too many competing elements along the route. Each extra banner or button creates a new stop and weakens the path.
- A call to action with low contrast or size. Position alone does not draw attention. Visual hierarchy still decides what stands out.
- No payoff at the end. If the route ends on a footer link instead of the action, the layout leads nowhere useful.
- Adding long text. Once the page fills with paragraphs, visitors fall back to F-like scanning and the Z route no longer describes what they do.
Mixed pages: decide section by section
Many real pages are long landing pages with several sections: a hero, a feature list, testimonials, pricing, and a closing call to action. No single pattern covers all of it. Treat each section on its own terms:
- The hero is sparse and action-focused, so lay it out along a Z route.
- A feature section with explanatory text is text-heavy, so write it with front-loaded headings and left-aligned content.
- A pricing table is a grid for comparison, so keep the labels in a clear left column and make differences easy to see.
- The closing section repeats the main action, since a visitor who scrolled this far is ready to act.
The glue between sections is visual hierarchy. Each section needs a clear heading, consistent spacing, and one dominant element, so the eye knows where each new block begins. Chapters on other patterns, such as the layer-cake pattern (scanning only the headings) and the commitment pattern (reading everything), describe the visitors you will find in each section.
When neither pattern applies
Some pages should not be designed around either pattern.
- Task-driven screens. A checkout form, a settings page, or a dashboard is used to complete a task. Visitors look where the task sends them. Group related fields, label them clearly, and follow the order of the task.
- Image grids and galleries. Eyes jump between items, which is closer to the spotted pattern than to an F or a Z.
- Right-to-left languages. The patterns mirror. An Arabic or Hebrew page is expected to start at the top right, so the "left edge" becomes the right edge. Use logical CSS properties such as
margin-inline-startandtext-align: startinstead of hard-coded left and right, and setdircorrectly. - Mobile screens. On a narrow screen content stacks into one column. There is no wide top row or diagonal. Think in terms of order and thumb reach: the key message first, the action visible without hunting.
A short worked example
Suppose you are asked to lay out three pages for a language-learning product.
- The "How our lessons work" help article. It is long, factual, and visitors look for one answer. Choose F-pattern friendly: descriptive headings, short paragraphs, key terms in bold, a list of steps.
- The home page. It has a logo, a headline, one image, and a "Start free" button. Choose Z-pattern friendly: logo top left, login top right, headline and image across the middle, the button at the bottom right, with strong contrast.
- The pricing page. It has a heading, three plan cards, and a comparison table. Choose a mixed approach: a short sparse intro, then equal cards with a consistent internal order (plan name, price, button), and a table with a clear left column.
In each case you picked a layout by looking at density, goal, and structure. You did not start from a pattern name.
Treat the choice as a hypothesis
Your choice is a prediction about how visitors will behave. It may be wrong, because the visitor's task, language, device, and prior experience all change how they scan. Use the pattern to make a first layout, then check it with usability testing or heatmaps, as covered in the final chapter. If real visitors miss your call to action, change the layout, even if it matches the pattern perfectly.
Exercise
A page has a logo, a one-line headline, a short sentence, a product photo, and a "Book a demo" button. Which layout guide fits best, and where should the button go? Name one change that would make you switch to a different guide.
Show answer
A Z-pattern friendly layout fits, because the page is sparse and has one main action. Put the logo top left, any navigation or login top right, the headline and photo across the middle, and the "Book a demo" button at the bottom right of the route, with high contrast and a clear size. If you added several long paragraphs of explanation, the page would become text-heavy, and you would switch to an F-pattern friendly structure with descriptive headings and a clear left edge.
Exercise
You are designing a page for an Arabic-speaking audience that has a header, a headline, an image, and a sign-up button. What must change compared with the left-to-right version, and how would you implement it in CSS?
Show answer
The route mirrors. Visitors start at the top right, so the logo moves to the top right, the navigation to the top left, and the main action ends at the bottom left. Set dir="rtl" (and the right lang) on the page, and use logical properties such as text-align: start, margin-inline-start, and flexbox or grid, which follow the writing direction, instead of fixed left and right values. Then check the result with testing, because the mirrored pattern is also a tendency.