Not sure how to arrange your pages so visitors find things fast? A good web page layout puts content in a clear order, uses grid or flexbox for structure, and adapts to every screen. Start with one column, add more as space allows.
| Item | Value |
|---|---|
| Flexbox | One-dimensional (rows or columns) |
| CSS grid | Two-dimensional (rows and columns) |
| Year the term “responsive design” was coined | 2010, by Ethan Marcotte |
| Typical fluid image max-width | 100% |
The figures above come from MDN’s CSS layout module and its responsive web design guide. Web standards and documentation change, so check the sources before you rely on them.
What is a web page layout?
A web page layout is the way a page arranges its header, navigation, main content, side content and footer. It decides what visitors notice first and how easily they can move through the page. A strong layout makes a page feel obvious, so nobody has to think about where to look next.
web.dev describes macro layouts as the larger, page-wide organization of an interface. You can read that definition in its macro layouts lesson. The same lesson then points you to the components inside the page, the realm of micro layouts, once the big structure is settled.
Most pages are built from the same handful of regions:
- Header and navigation: the logo, main menu and often a search box.
- Main content: the article, product, form or message the page exists to deliver.
- Aside or sidebar: related links, filters or supporting notes.
- Footer: secondary links, contact details and legal text.
Before you apply any layout, the web.dev lesson says to make sure the flow of your content makes sense. That single-column order is also what smaller screens will receive, so it is the foundation for everything that follows.
Core principles of a good web page layout
Good layouts follow a small set of principles that hold whether you code by hand or use a builder. Treat them as a checklist you run before you pick colors or fonts.
- Clear order: the most important content comes first in the source and on screen.
- Strong hierarchy: size, weight and position tell visitors what matters most.
- Breathing room: space around elements separates groups and reduces noise.
- Readable text: line length and type choices keep reading comfortable.
- Consistency: repeated patterns teach visitors how the site works.
- Flexibility: the design holds up on every screen size.
Hierarchy and space
Visitors scan before they read, so the eye needs a path. Our guide to visual hierarchy in web design shows how scale, contrast and position build that path.
Empty areas are not wasted areas. Our guide to white space in web design explains how margins and padding group related items and let the important ones stand out.
Text and first impressions
Long lines of text are a real layout problem. MDN notes that long lines displayed full screen on a wide monitor can be difficult to read, which is why a layout should cap the width of a text column. Our guide to typography in web design covers size, spacing and font pairing in more depth.
The first screen a visitor sees carries extra weight. Our page on above the fold explains what to place there and what can safely wait further down.
Common types of web page layouts
Almost every site mixes a few proven patterns. Pick the one that matches the job of the page, not the one that looks newest.
Single-column layout
One column of content, stacked from top to bottom, is the simplest layout and the default on small screens. It suits articles, documentation and stories where reading order matters most. It also makes a safe starting point for any other pattern.
Two-column layout with a sidebar
A wide main column paired with a narrower aside is the classic blog and documentation pattern. The aside carries navigation, related links or filters while the main column holds the content. On narrow screens the aside usually drops below the main content.

Card grid layout
Product listings, portfolios, news hubs and course catalogs usually use a grid of equal cards. Each card is a small self-contained unit, so the page grows by adding more cards. The grid reflows as the screen narrows, going from several cards per row to a single stack.
Landing page layout
A landing page has one goal, such as a sign-up or a purchase, so its layout removes distractions and leads the eye to a single action. Our guide to landing page layout walks through the sections that usually appear and the order that tends to work.
Multi-column and magazine-style layouts
Some content works well in several columns, much like a newspaper. MDN explains that the multiple-column layout specification gives you a way to lay content out in columns. Use it sparingly, because long columns that need vertical scrolling in each column frustrate readers.
CSS tools for building a layout
Modern layouts rest on two CSS systems, grid and flexbox, with older tools still found in legacy projects. Knowing which one fits each job saves a lot of code.
CSS grid for page structure
MDN states that CSS grid layout is a two-dimensional layout system that organizes content into rows and columns. That makes grid a natural choice for the overall page frame and for card galleries. web.dev shows a two-column page layout that needs only one rule on the containing element, wrapped in a media query for wider screens.
Flexbox for rows and components
Per MDN, flexbox is a one-dimensional layout method for laying out items in rows or columns, where items grow to fill space and shrink to fit. It shines for navigation bars, button groups and the insides of cards. For the same two-column page, web.dev points out that the flexbox version requires more CSS, because each column needs its own rule.
The two tools behave differently when a row is not full. web.dev explains that in a wrapping flexbox row the remaining cards will stretch to fill the available space rather than lining up in columns, and that you should use grid if you want rows and columns to line up.

Layouts without media queries
You do not always need breakpoints. In web.dev’s card example, the cards are never wider than 15em, and the goal is to fit as many as possible on one line. A grid rule that fills the row with as many cards as fit does that automatically, and web.dev notes that smart rules in flexbox or grid can produce dynamic macro layouts with minimal CSS and without any media queries.
Floats, positioning and legacy methods
MDN explains that the float property was originally for floating images inside blocks of text, then became a common tool for multi-column pages. With flexbox and grid it has returned to its original purpose. Positioning, which takes elements out of normal flow, still has a place for overlays and elements that stay fixed in the viewport.
Older grid systems built on floats are still common in old code. MDN’s page on legacy layout methods covers how they work so you can maintain an older project.
How do you make a layout responsive?
Responsive design means one layout that adapts to phones, tablets, laptops and larger screens. MDN says the term was coined by Ethan Marcotte in 2010 and described fluid grids, fluid images and media queries working together. Our guide to responsive web design goes through the full approach.
Plain HTML is already fluid. MDN notes that without CSS, the browser will automatically reflow the text to fit the viewport. A rigid fixed width fails in the opposite way, causing scroll bars on narrow devices and too much empty space on wide screens.
Three techniques do most of the work:
- Fluid grids: columns that share space in proportion instead of fixed widths.
- Fluid images: MDN says these have their max-width property set to 100%, so they shrink inside narrow columns but never grow beyond their intrinsic size.
- Media queries: MDN calls them a key part of responsive web design, because they let you create different layouts depending on viewport size.
Many teams write the small-screen styles first and add rules as the screen widens. Our guide to mobile first design explains that order of work. It matters because mobile users still face limits such as battery life and bandwidth, as MDN points out in its responsive design guide.
Planning and building your layout step by step
A reliable process beats inspiration. Follow these steps and most layout problems show up while they are still cheap to fix.
- Define the page goal. Decide the one action or answer the page must deliver.
- List the content. Write down every block you need, then rank them by importance.
- Sketch the structure. Draw a low-fidelity website wireframe before choosing colors or images.
- Start with the single-column order. Make sure the stacked sequence reads well on its own.
- Add columns where space allows. Use grid for the frame and flexbox for rows inside it.
- Test on real screens. Resize the browser and try a phone and a tablet.

Builder or hand-coded?
If you would rather not write CSS, a visual builder can give you tested layouts and responsive behavior out of the box. Our roundup of the best website builder options compares features, pricing and fit. Hand coding gives more control, at the cost of more upkeep.
Keep the layout fast
A layout that looks perfect but loads slowly still fails visitors. Heavy images, late-loading fonts and shifting blocks all hurt the experience, so read our guide to web performance optimization before you launch.
Frequently asked questions
What is the difference between a layout and a wireframe?
Show answer
A layout is the arrangement a page actually uses, while a wireframe is the rough sketch you draw to plan it. The sketch lets you test the structure before any styling exists.
Should I use grid or flexbox?
Show answer
Reach for grid when you need to control rows and columns together, such as a page frame or a gallery. Choose flexbox when items flow along a single line, as in a menu or a row of buttons. Many pages use both.
Do I need media queries for every layout?
Show answer
No. Media queries are handy when a few elements must change at certain widths, but flexible grid and flexbox rules can let the browser do the calculating. Too many breakpoints become hard to maintain.
Is it still fine to use floats for columns?
Show answer
Floats were once the standard route to multi-column pages, yet grid and flexbox now do that job more cleanly. Keep floats for their original purpose of wrapping text around an image, and learn the older approach only if you maintain legacy code.



