Sub topic 3
Making Pricing Tables Work on Small Screens
Assume basic HTML and CSS, responsive layout, and how subscription products are sold. The goal is to preserve relationships between plans, features, and prices at every screen width.
Making the table work on small screens
A comparison table often has more columns than a phone can display. Keep the table intact and let its wrapper scroll horizontally. Do not shrink text until it becomes unreadable or hide important columns.
<div class="table-wrap">
<table class="plans">
<caption>Compare plans</caption>
<thead>
<tr>
<th scope="col">Feature</th>
<th scope="col">Starter</th>
<th scope="col">Team</th>
<th scope="col">Business</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Projects</th>
<td>3</td>
<td>Unlimited</td>
<td>Unlimited</td>
</tr>
<tr>
<th scope="row">Single sign-on</th>
<td>Not included</td>
<td>Not included</td>
<td>Included</td>
</tr>
</tbody>
</table>
</div>.table-wrap {
overflow-x: auto;
}
.plans {
min-width: 36rem;
border-collapse: collapse;
}
.plans th,
.plans td {
padding: 0.75rem 1rem;
border-bottom: 1px solid #ddd;
text-align: left;
}A stacked card layout can work instead, but only if each feature remains clearly connected to a plan.
Accessible pricing tables
Use a caption, header cells, and scope attributes. Write meaningful text such as “Included” and “Not included” instead of relying on color or symbols. Test keyboard navigation, zoom, and a screen reader.
FAQ, guarantees, and enterprise contact
Place answers to purchase questions near the plans. Explain refunds, trials, cancellation, taxes, usage limits, and billing frequency. Give enterprise buyers a contact path without forcing every visitor to request a quote.
Anchoring and the recommended plan
A high-priced plan can provide context for the others. Highlight a recommended plan when it fits the largest audience, but label the reason clearly. Do not make the recommendation look like an independent review if it is only a sales choice.
Transparency and dark patterns to avoid
Show the real billing period, total annual charge, renewal price, and important limits before checkout. Avoid hidden fees, preselected upgrades, confusing toggle labels, and cancellation paths that are harder than signup.
> Callout note > A discount is clear only when visitors can calculate what they pay now and what they will pay later.
Measuring and iterating
Track plan selection, billing-toggle changes, checkout starts, completed purchases, cancellations, and support questions. Segment results by device and customer type. An A/B test should change one meaningful design decision and measure completed purchases alongside refunds and cancellations.
Exercise
Why should a narrow-screen table scroll instead of hiding columns?
Show answer
Scrolling preserves the relationship between each feature and every plan while keeping the text readable.