cardsuit.css v2.0 β

What is it?

cardsuit.css v2.0β is a CSS3-only stylesheet with an inline image sprite to show all possible cards in a deck.

Getting started

Simply include the following <link> tag in your HTML file (or download the CSS file here and use that one instead):

<link rel="stylesheet" src="http://kevinvanderburg.nl/cardsuit/cardsuit.2.0.min.css">

Usage

To initialize cardsuit.css v2.0β, add the class cardsuit to one of the content containers. This can be the <body> tag if you'd like.

You can now add an empty <span> in your content, give it a class of the card you'd like to show, and the corresponding card will be shown in the code.

Examples

#todo

Currently, a jQuery plugin to auto-convert text to cardsuit.css compatible <span>s is expected soon.

Looking for v1?

Click here.