Skip to main content

Lesson 1 of 10

Pricing Table Component

Pricing tables are found on every SaaS website. This build creates a 3-tier pricing component with a highlighted recommended plan, feature checklists, responsive layout, and hover effects - using CSS Grid, Flexbox, and modern styling techniques.

20 minBy Priygop Editorial TeamUpdated 2026Peer Reviewed & Verified

Pricing Table Strategy

  • Grid layout - 3-column grid with equal-width cards that stack on mobile
  • Featured card - The recommended plan is visually elevated (scale, border, badge)
  • Feature checklist - Clean list with checkmark icons using ::before pseudo-elements
  • Responsive - Single column on mobile, 3 columns on desktop with auto-fit grid
  • CTA button - Clear call-to-action with distinct styling on the featured plan
  • Hover effects - Subtle lift and shadow on card hover. Scale on featured card

Mini-Build: Pricing Table

Mini-Build: Pricing TableHTML
HTML
✓ Valid
HTML|57 lines|✓ Valid syntax
UTF-8

Tip

The featured pricing card uses transform: scale(1.05) + z-index: 1 to visually pop above adjacent cards. This pattern draws the eye to the recommended plan and is used on virtually every SaaS pricing page.

Diagram
Loading diagram…

Anatomy of a high-converting pricing table with featured tier elevation and responsive flex layout

Common Mistake

Fixed-width pricing cards that break on mobile. Always use grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) so cards stack to a single column naturally - no media query needed for the basic responsive behavior.

Practice Task

Enhance the pricing table: (1) Add a monthly/yearly toggle that changes prices, (2) Add hover: translateY(-4px) lift effect on non-featured cards, (3) Make the CTA button on featured plan filled, others outlined.

Quick Quiz

Key Takeaways

  • Pricing tables are found on every SaaS website.
  • Grid layout - 3-column grid with equal-width cards that stack on mobile
  • Featured card - The recommended plan is visually elevated (scale, border, badge)
  • Feature checklist - Clean list with checkmark icons using ::before pseudo-elements

Finished this lesson?

0 of 10 in Module 10
Sign in to save progress

Hands-on Practice Tools for this Course

Test what you learn using these free in-browser developer utilities (no signup required).

All 40+ Tools

Topics in This Module

0/10 done