Pass the menu and read the page

SignupFolio

Signup button spacing: 2 sizes and when to add gaps

Signup buttons measuring 24 by 24 CSS pixels need no extra spacing; smaller targets need a gap only when their circles intersect neighboring targets.

Key takeaways

  • Measure the clickable area in CSS pixels, including its height.
  • Check small targets against their neighbors using the circle test below.
  • Repeat measurements at narrow phone widths.
  • Give frequently pressed controls more room than the minimum.

Most signup forms ask for more than one click. There is the main action, usually a button that says "Create account." There may be a secondary choice such as "Log in instead," a link styled as a button, or a row of social sign-in buttons under the fields. To the person filling in the form, these look like separate controls. To a finger or a cursor, they are only as separate as the space between them.

The gap question is easy to skip. A designer picks some padding, a marketer approves the layout, and the form goes live. Then someone on a phone taps the wrong option, backs out, and never says why. Tight buttons and small targets can contribute to people leaving a form halfway through, and that loss rarely shows up in a survey.

This post is for marketers and growth leads who set the buttons on a signup form and need to know when a button needs room around it. You do not need to write code to use it. You do need a clear picture of two sizes, and a way to check them.

The W3C addresses this problem in its guidance on target size. Its success criterion, 2.5.8, covers how large a clickable area must be and when space around a smaller one can make up for its size. The guidance is written for people who build web pages, but its ideas carry over to the decisions a growth lead makes when reviewing a form: how big each button is, how close it sits to the next one, and how often people press it.

This post covers two sizes. The first is 24 CSS pixels, the size at which a button passes without extra spacing. The second is 16 CSS pixels, a small target that the W3C uses to show when a gap is required. The two sizes work together. Once you understand them, you can review a signup form in a few minutes and have a useful conversation with your developers.

Units and clickable areas

Pages describe size in CSS pixels. That unit does not match a fixed physical measurement on a screen, because the device scales it for the display. A button can look large in a design tool and still be small in the browser if the tool uses a different unit or scale. Before you judge a button, confirm that the numbers are in CSS pixels, since the W3C figures use that unit. When there is any doubt, ask the developer for the rendered size rather than the size in the mockup.

The test is about the clickable area, not only the visible shape. A button with a thin outline and generous padding can have a larger target than its border suggests. A text link with tight line spacing can have a smaller target than its words make it seem. When you review a form, look at what responds to a tap, not only at what is drawn.

Size also changes with the screen. A layout that works at one width can squeeze buttons at a narrower one, so check the form at several widths, including the narrow widths people use on phones. Write down the widths you checked, so the next review can repeat the same test. For the surrounding layout, also review signup page reflow width.

Spacing is the other half of the picture. The gap is what separates one clickable area from the next, so it matters once you know each control's size. A form with generous padding can still fail if its small controls sit against each other. A form with tight padding can pass if every control is large.

When you bring this to your developers, keep the request specific. Ask for the measured size of each tappable element, the gap between it and its nearest neighbor, and the screen width where the measurement was taken. A request to make the form "more accessible" usually gets a long discussion and no measurements.

The 24 pixel size: no gap needed

The first size is 24 by 24 CSS pixels. The W3C example shows three buttons on screen, and each one is 24 by 24 CSS pixels. Because the target itself is that large, the example needs no extra room around it. In the guidance's words, "Since the target size itself is 24 by 24 CSS pixels, no additional spacing is required, the success criterion passes." (W3C, Understanding Success Criterion 2.5.8)

For a signup form, this is the simplest test to run. If the main button, the secondary button, and each social sign-in button all measure at least 24 by 24 CSS pixels, you do not need to add a gap for the target-size requirement. You may still want more space for readability or visual balance, but that is a design decision rather than something this guidance asks for.

Passing the size test tells you only one thing. The 24 pixel check covers target size. It does not tell you whether the label is clear, whether the colors have enough contrast, or whether the button sits where people expect to find it. Treat the size test as one part of the review, not the whole review. Check visible labels and accessible names alongside target size.

Sign-in buttons that use social accounts are a common case. Many are wide, which helps with width, but the height still counts. A row of wide buttons that are only a little taller than their text can still fall short on height. Measure each button's height directly rather than assuming that a wide button is a large one.

Where does 24 go wrong in practice? A common place is a narrow screen, where a button shrinks to fit a column or wraps onto two lines and changes shape. Another is a text link styled to look like a button that never gets the size it needs. A form can pass on a desktop and fail on a phone without anyone changing the design. That is why the check has to cover more than one screen.

If a text link is the only way to reach a step, do not shrink it to make the page look tidy. Give it the same size test as a button. A person who cannot tap the link is stuck just as surely as a person who cannot find the main action.

The 16 pixel size and the gap it needs

The second size is 16 by 16 CSS pixels. The W3C uses an example with two rows of buttons, both with a height of only 16 CSS pixels. The guidance explains why the first row fails: "In the first row, the 16 by 16 CSS pixel target touching/abutting the large target fails, as its 24 CSS pixel diameter circle used for undersized targets intersects the large target." (W3C, Understanding Success Criterion 2.5.8)

That sentence holds the whole idea. A target smaller than 24 CSS pixels is an undersized target, and its test is not only its own size. A circle 24 CSS pixels across is drawn around it. If that circle runs into another target, the small one fails. In the first row, the small target sits right against the large one, so the circle crosses into it.

The second row shows the fix. The guidance says: "In the second row we see that the only way the undersized target can pass is by adding a 4 CSS pixel spacing gap between the targets." (W3C, Understanding Success Criterion 2.5.8)

Be careful with that number. The 4 CSS pixel gap is what the W3C used to make its example pass. It is not a promise that 4 pixels will work on every layout, because the real test is the circle. If any other target sits inside the 24 pixel circle around your small button, you need more space or a different layout. Check the circle on your own form rather than copying the example's gap.

Small targets appear in predictable places on a signup form. A show-password icon beside a field is one. A small close button on a notice is another. A tiny edit link next to an address the person has already typed is a third. Each may be fine alone, but placed beside another tap target, the gap question returns. List these controls before the review starts so none gets missed.

Small targets also tend to arrive late. A developer adds a helper icon during a bug fix, or a designer adds a "remember me" toggle after a test. Each addition is small, but it can change the spacing around the controls already on the page. Treat every new control as a new target-size question.

Small icons are also easy to overlook on a screenshot. The eye goes to the headline and the main button. Measure the small things on purpose, and walk the form element by element rather than stopping at the controls that look important.

Comparing the two sizes side by side

The table puts the main options next to each other. Use it as a quick reference during a design review, and link to the W3C page when you explain a decision to the team.

OptionTarget size (CSS px)Spacing neededWhat the W3C guidance saysWhere it fits on a signup form
Single button24 by 24None for the size testTarget size itself passesMain submit button and secondary buttons
Small target beside a large target16 by 16A gap is needed; 4 CSS pixels in the exampleFails when touching; passes with the example gapSmall icons, toggles, and dismiss buttons, but only with room around them
Row of buttonsHeight 20, width more than 244 CSS pixels vertical margin above and below the rowDescribed with that margin around the rowSign-in rows

The third row describes a different arrangement. The guidance describes a row of buttons, each wider than 24 CSS pixels, with a height of only 20 CSS pixels and 4 CSS pixels of vertical margin above and below the row. Confirm the exact arrangement on the W3C page before you apply it. The lesson is that spacing around the whole row matters, not only spacing around one button.

Use the 24 by 24 row as the default. Treat the other rows as exceptions that you justify with a measurement from the real page. That habit keeps the review honest and lets a developer answer quickly.

If the budget for fixes is tight, sort the work by what the form asks people to press. Fix the main action first, then the secondary buttons people press when they hit a problem, then the small icons and toggles. That order gives the biggest gain for the least effort.

Illustrative example: measure before changing the gap

Its width alone does not settle the review: check its height and the circle around the target against neighboring controls. Record the measurements, then repeat at a narrow phone width before deciding whether to change the layout.

Frequent taps need more room

The W3C numbers are a floor, not a target to aim for. Guidance for Windows apps makes a point about how often a target is pressed. It recommends "consider making targets that are repeatedly or frequently pressed larger than the minimum size," and adds that "this is especially true for targets that are touched frequently." (Microsoft Learn, Targeting) A signup page is a different product from a Windows app, but the reasoning carries over. The more a control gets pressed, the more room it deserves.

People press it again when a field is wrong, when the page is slow, or when they are not sure the first press worked. A submit button that is comfortably larger than 24 by 24 CSS pixels, with clear space around it, is a sensible choice, because it is the control people press most.

Secondary links and icons are pressed less often, so they can stay closer to the minimum if their spacing is right. Do not let that reasoning become an excuse to shrink the main action. A missed tap on the main action can end the sign-up.

Multi-step forms add another case. A back button is pressed when someone changes an answer, and it often sits next to the forward button. If the back button is small, the gap between the two matters a lot. Frequent use is a reason to give a control more room, even when it is not the main action.

Error messages add pressure too. When a message appears with a "Try again" or "Resend code" control, that control is pressed by people who are already annoyed. Give it room, and keep it away from the controls people press to leave the page.

Checking your own signup form

Here is a short routine to run with a developer or designer. Keep the results on one page of notes, so the team can repeat it after every change.

  1. List every element a person can tap on the form, including icons, toggles, and text links that act like buttons.
  2. Measure each one in CSS pixels using the browser's developer tools, at several screen widths, including narrow phone widths. Do not rely on the design file alone.
  3. Mark anything below 24 by 24 CSS pixels. For each one, check whether another target sits inside its 24 pixel circle. If one does, add a gap or move the control.
  4. Give the main submit button room beyond the minimum, and keep other taps clear of it.
  5. Test on a real phone with real thumbs. A form can pass every number and still feel crowded, so the test that counts is whether people press the button they meant to press.

Write a short note for each exception: the measured size, the gap, and the reason the control stays. A future redesign can check that note instead of starting from zero.

Repeat the check after every redesign, new field, or new sign-in option. Each new element can change the spacing around the others, and a form that passed before can fail after one new icon is added. A quick pass after each change costs far less than tracking down a mis-tap problem in your conversion numbers weeks later.

Start with one measurement today

Ask a developer to measure your smallest signup control and its nearest neighbor at a narrow phone width. Record the clickable size and gap, then decide together whether to enlarge or move it.

Checking the gap

Does a wide button pass automatically?

No, its height also needs checking. Measure both dimensions of the clickable area rather than relying on how large the button looks.

Does passing target size finish the review?

No, labels, contrast, and placement still need review. Use the measurements alongside the rest of your form checks.

Sources and check date

Related posts

More posts