CSS Stylish Pricing Table Design #1


CSS Pricing Table :

Price Table using unordered list

Solution :

In this tutorial we are looking one form of stylish price table using the CSS. This tutorial we are not using the table, instead we are using the unordered list for each table td.

Each Column in the Price table will be represented by using following structure -

suppose we need to display 4 columns then we need to write 4 sets of unordered list. All these set of unordered lists is wrapped inside the div.

Now we need to write CSS code for styling the above HTML code. First of all we are removing all styles i.e bullets from the unordered list and we are setting the width for ul list.

Main div is having the property float:left which causes all the ul lists aligned horizontally.

Above code will expand the column when we hover cursor over it. Following selectors will style the childs of the list -

Selector Explanation
.price_table ul li:first-child Styling the first list item of the unordered list
.price_table ul li:nth-child(2) Styling the 2nd list element
.price_table ul li:nth-child(3) Styling the 3rd list element
.price_table ul li:nth-child(n+4) Styling the remaining list elements

Complete Code :

HTML Code

CSS Code