Ask La Gaffe source note: Official signal from CSS-Tricks. Filed under 12 Coding & Web — Web Lab for the 1337 / Ask La Gaffe Creative Media Academy.
A clever use of CSS to calculate and display a discounted product price by providing a base price and discount amount, featuring modern CSS features like attr(), mod(), and round(). Computing and Displaying Discounted Prices in CSS originally handwritten and published with love on CSS-Tricks. You should really get the newsletter as well.
Original source: CSS-Tricks
This post is an attributed source pointer and short excerpt, not a full republication of the original article.

Leave a Reply