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
