Professional Documents
Culture Documents
Paulund
Tutorials Snippets Resources Archives About Contact
This is just a simple PSD of a pricing table but the middle column is larger than the others. I thought this would be ideal to use CSS animation to scale the current column the mouse is hovering over. This tutorial is will teach you how to create this pricing table with the CSS scaling effects, view the demo to see what we will be making. Demo
The HTML
The HTML for the table is in fact not a table this can easily be done by using a table but I prefer not working with tables. The data that needs to be displayed can be better organised by using a list this is because the data can to split into columns to be displayed to the visitor. First we create a div which will hold the lists. Create 5 lists for different columns. Enter the column data.
<i cas"rcn_al" dv ls=piigtbe> <l u> <iSadr<l> l>tnad/i <i0/i l>2<l> <iPretfrtoegtigsatdwt orap<l> l>efc o hs etn tre ih u p./i <i1 Poet<l> l>5 rjcs/i <i5BSoae/i l>G trg<l> <iUlmtdUes/i l>niie sr<l> <iN Tm Takn<l> l>o ie rcig/i <iEcae Scrt<l> l>nhnd euiy/i <i<l> l>/i <i< he="cas"u_o"ByNw/>/i l>a rf" ls=bynw>u o<a<l> <u> /l <l u> <iPeim/i l>rmu<l> <i0/i l>6<l> <iPretfrtoegtigsatdwt orap<l> l>efc o hs etn tre ih u p./i <i1 Poet<l> l>5 rjcs/i <i5BSoae/i l>G trg<l> <iUlmtdUes/i l>niie sr<l> <iN Tm Takn<l> l>o ie rcig/i <iEcae Scrt<l> l>nhnd euiy/i <i<l> l>/i <i< he="cas"u_o"ByNw/>/i l>a rf" ls=bynw>u o<a<l> <u> /l <l u> <iPoesoa<l> l>rfsinl/i <i0/i l>8<l> <iPretfrtoegtigsatdwt orap<l> l>efc o hs etn tre ih u p./i <i1 Poet<l> l>5 rjcs/i <i5BSoae/i l>G trg<l> <iUlmtdUes/i l>niie sr<l> <iN Tm Takn<l> l>o ie rcig/i
www.paulund.co.uk/css3-animation-pricing-table
1/5
2/17/13
<iEcae Scrt<l> l>nhnd euiy/i <i<l> l>/i <i< he="cas"u_o"ByNw/>/i l>a rf" ls=bynw>u o<a<l> <u> /l <l u> <iPu<l> l>ls/i <i0<l> l>10/i <iPretfrtoegtigsatdwt orap<l> l>efc o hs etn tre ih u p./i <i1 Poet<l> l>5 rjcs/i <i5BSoae/i l>G trg<l> <iUlmtdUes/i l>niie sr<l> <iN Tm Takn<l> l>o ie rcig/i <iEcae Scrt<l> l>nhnd euiy/i <i<l> l>/i <i< he="cas"u_o"ByNw/>/i l>a rf" ls=bynw>u o<a<l> <u> /l <l u> <iMxmm/i l>aiu<l> <i2<l> l>10/i <iPretfrtoegtigsatdwt orap<l> l>efc o hs etn tre ih u p./i <i1 Poet<l> l>5 rjcs/i <i5BSoae/i l>G trg<l> <iUlmtdUes/i l>niie sr<l> <iN Tm Takn<l> l>o ie rcig/i <iEcae Scrt<l> l>nhnd euiy/i <i<l> l>/i <i< he="cas"u_o"ByNw/>/i l>a rf" ls=bynw>u o<a<l> <u> /l <dv /i>
The CSS
First we are going to write the style for the outline of the whole table. This can easily be done using the CSS outline property, then we need to curve the border by using the border-radius property. Complete this by using the following CSS.
.rcn_al { piigtbe bre:p sld#4bc odr1x oi ccc; bre-ais4x odrrdu:p; -o-odrrdu:p; mzbre-ais4x -ektbre-ais4x wbi-odrrdu:p; otie7xsld#233 uln:p oi fff; fotlf; la:et }
www.paulund.co.uk/css3-animation-pricing-table
2/5
2/17/13
Like this image, want to download the full PSD? Get the PSD from premium pixels freebies. View the demo to make sure that your pricing table is the same. If you followed the tutorial you should have the same. Demo
Tweet
Link Indenting With CSS3 AnimationSecure Your WordPress Site david this does not seem to work in internet explorer 9. any ideas? thanks in advance http://www.paulund.co.uk/ Paul There are some css3 things which IE9 can't do I don't know exactly what but if you use Firefox or Chrome it should work perfectly well. david www.paulund.co.uk/css3-animation-pricing-table 3/5
2/17/13
How To Build A Pricing Table With CSS3 Animation yes i use firefox just was looking for complete cross browser compatibility. thanks though still good work http://www.paulund.co.uk/ Paul hi David did you find out anymore about the compatibility issues? david no still working on it JoelBesada Cool, but I don't see any animations on the pricing table. CSS transforms is not the same as CSS transitions (i.e. animations). adam the typeface on your website renders weird at the size you have it for articles. I'm on Chrome/Win7 http://www.logoguru.co.uk/ Sam Anderson i have use this codes as you given to me but i am facing problem that i have created the table in 1st step but inner content of a table bounds out in alignment. What should i do to fix it? http://www.paulund.co.uk/ Paul Not sure I can help without seeing whats wrong so the only thing I can suggest is to try copying the code again you might of missed something. http://www.BriteRise.com/ Jason Davis Perfect. I love it and it worked flawlessly. Set up a 3 column pricing grid with beautiful style in 20 minutes. Thank you Thank you Thank you. Check it out on WordPress Blogs http://www.paulund.co.uk/ Paul Nice one looks awesome good work. http://www.BriteRise.com/ Jason Davis Thanks again for the wonderful snippet and reply. http://www.paulund.co.uk/ Paul Your Welcome Jason http://www.paulund.co.uk/ Paul Hello Matthew, you are able to style the table header differently than the others. On all of the columns the header is the first list item on the lists. With CSS you can use the pseudo class first-child to style the first item in the list. .pricing_table ul li:first-child { // Add your styles here } I LIKE ! -)How To Build A Pricing Table With CSS3 Animation paulund.co.uk/css3-animation via @paulund_ Vinvin G. (@vinvinXD) March 19, 2012
Search...
Amazing Hosting Media Temple Amazing Support, Amazing Uptime, Amazing Performance! ads via Carbon
Popular Tutorials
www.paulund.co.uk/css3-animation-pricing-table 4/5
2/17/13
How To Build A Pricing Table With CSS3 Animation Creating Different CSS3 Box Shadows Effects How To Use The HTML5 Notification API How To Create Pretty Search Forms Smooth Scrolling To Internal Links With jQuery How To Create Different Shapes In CSS How To Use HTML5 GeoLocation API With Google Maps CSS Buttons With Icons But No Images Turn On HTML5 In IE8 or Lower How To Create A Simple Modal Box With JQuery How To Add Text Gradients With CSS
PowerfulSEOwithRankTracker only$39!
Ends:7days 10hours 43min 59sec
www.paulund.co.uk/css3-animation-pricing-table
5/5