liveBook · Manning

Pricing table

As explained in Web Design Playground, Second Edition

A pricing table is a comparative layout that presents product versions or packages together with their prices and features.

A pricing table puts product versions side by side so visitors can compare prices and what each version includes. On a landing page, it gives the visitor a place to choose after seeing the product description and testimonials. section 10.5

Start with a heading such as “Select the version that's right for you!” Then give each version its own block with a title, price, included items, and an “Order Now!” button. Three blocks can sit in one row; each takes one-third of the available width. No mysterious table machinery required—these are styled HTML divs. section 10.5

<div class="product-versions">                                                  #1
    <div class="container">                                                     #2
        <div class="product-version">                                           #3
            <h3 class="version-title">eBook Version</h3>                        #4
            <h4 class="version-price">$9.99</h4>                                #5
            <div class="version-item">                                          #6
                300-page PDF                                                    #6
            </div>                                                              #6
            <div class="version-item">                                          #6
                Free ebook                                                      #6
            </div>                                                              #6
            <div class="version-item">                                          #6
                Free newsletter subscription                                    #6
            </div>                                                              #6
            <div class="version-item">                                          #6
                10% off your next purchase                                      #6
            </div>                                                              #6
            <div class="version-item">                                          #6
                <button class="btn btn-plain" type="button">Order Now!</button> #6
            </div>                                                              #6
        </div>
    </div>
</div>

See how a version's title, price, included items, and button fit inside a product-version block. section 10.5

.product-versions {
    padding: 1em 0;
    background-color: plum;}
.product-version {
    float: left;
    width: 33.33%;
    border: 1px solid gray;
    text-align: center;
    background-color: white;}
.version-title {
    padding: .75em 0;
    font-size: 1.5em;}
.version-price {
    padding: .75em 0;
    font-size: 2em;
    background-color: lightgray;}
.version-item {
    border-bottom: 1px solid gray;
    width: 100%;
    padding: .75em 0;
    font-size: 1.25em;}
.version-item:last-child {
     border-bottom: 0;}
.btn-plain {
    font-weight: normal;
    color: black;
    background-color: lightgray;}

See the CSS that places versions side by side and distinguishes titles, prices, and item rows. section 10.5

Three versions of a novel

An eBook costs $9.99, a print copy costs $14.99, and an eBook-plus-print bundle costs $19.99. Their item rows spell out what comes with each choice. The bundle's price gets a contrasting color to draw attention to it. section 10.5

How Web Design Playground, Second Edition covers it

How deep it goes
Builds a three-version layout with HTML blocks and CSS for widths, item rows, and a featured price.
Examples
Compares $9.99 eBook, $14.99 print, and $19.99 bundle options for a novel.
What it assumes
Assumes a basic page skeleton and introduces the section's HTML classes and CSS properties as it is built.
What you can do after
Build it from scratch as a styled landing-page section with comparable versions, prices, included items, and order buttons.
How it connects
Connects product versions, landing pages, CSS layout, and call-to-action buttons.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Web Design Playground, Second Edition. The section links point to the parts of the book it draws on.