Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="card ace_clubs"></div>
<div class="card two_clubs"></div>
<div class="card three_clubs"></div>
<div class="card four_clubs"></div>
<div class="card five_clubs"></div>
<div class="card six_clubs"></div>
<div class="card seven_clubs"></div>
<div class="card eight_clubs"></div>
<div class="card nine_clubs"></div>
<div class="card ten_clubs"></div>
<div class="card jack_clubs"></div>
<div class="card queen_clubs"></div>
<div class="card king_clubs"></div>
<br />
<div class="card ace_hearts"></div>
<div class="card two_hearts"></div>
<div class="card three_hearts"></div>
<div class="card four_hearts"></div>
<div class="card five_hearts"></div>
<div class="card six_hearts"></div>
<div class="card seven_hearts"></div>
<div class="card eight_hearts"></div>
<div class="card nine_hearts"></div>
<div class="card ten_hearts"></div>
<div class="card jack_hearts"></div>
<div class="card queen_hearts"></div>
<div class="card king_hearts"></div>
<br />
<div class="card ace_spades"></div>
<div class="card two_spades"></div>
<div class="card three_spades"></div>
<div class="card four_spades"></div>
<div class="card five_spades"></div>
<div class="card six_spades"></div>
<div class="card seven_spades"></div>
<div class="card eight_spades"></div>
<div class="card nine_spades"></div>
<div class="card ten_spades"></div>
<div class="card jack_spades"></div>
<div class="card queen_spades"></div>
<div class="card king_spades"></div>
<br />
<div class="card ace_diamonds"></div>
<div class="card two_diamonds"></div>
<div class="card three_diamonds"></div>
<div class="card four_diamonds"></div>
<div class="card five_diamonds"></div>
<div class="card six_diamonds"></div>
<div class="card seven_diamonds"></div>
<div class="card eight_diamonds"></div>
<div class="card nine_diamonds"></div>
<div class="card ten_diamonds"></div>
<div class="card jack_diamonds"></div>
<div class="card queen_diamonds"></div>
<div class="card king_diamonds"></div>
              
            
!

CSS

              
                html {
  background-color: #076324;
  background-image: url("http://www.transparenttextures.com/patterns/black-felt.png");
}

.card {
  display: inline-block;
}

.ace_clubs {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -2px -1px;
}

.two_clubs {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -75px -1px;
}

.three_clubs {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -148px -1px;
}

.four_clubs {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -220px -1px;
}

.five_clubs {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -294px -1px;
}

.six_clubs {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -366px -1px;
}

.seven_clubs {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -440px -1px;
}

.eight_clubs {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -512px -1px;
}

.nine_clubs {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -586px -1px;
}

.ten_clubs {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -658px -1px;
}

.jack_clubs {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -732px -1px;
}

.queen_clubs {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -804px -1px;
}

.king_clubs {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -878px -1px;
}

.ace_hearts {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -2px -99px;
}

.two_hearts {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -75px -99px;
}

.three_hearts {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -148px -99px;
}

.four_hearts {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -220px -99px;
}

.five_hearts {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -294px -99px;
}

.six_hearts {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -366px -99px;
}

.seven_hearts {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -440px -99px;
}

.eight_hearts {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -512px -99px;
}

.nine_hearts {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -586px -99px;
}

.ten_hearts {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -658px -99px;
}

.jack_hearts {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -732px -99px;
}

.queen_hearts {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -804px -99px;
}

.king_hearts {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -878px -99px;
}

.ace_spades {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -2px -197px;
}

.two_spades {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -75px -197px;
}

.three_spades {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -148px -197px;
}

.four_spades {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -220px -197px;
}

.five_spades {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -294px -197px;
}

.six_spades {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -366px -197px;
}

.seven_spades {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -440px -197px;
}

.eight_spades {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -512px -197px;
}

.nine_spades {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -586px -197px;
}

.ten_spades {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -658px -197px;
}

.jack_spades {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -732px -197px;
}

.queen_spades {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -804px -197px;
}

.king_spades {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -878px -197px;
}

.ace_diamonds {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -2px -295px;
}

.two_diamonds {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -75px -295px;
}

.three_diamonds {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -148px -295px;
}

.four_diamonds {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -220px -295px;
}

.five_diamonds {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -294px -295px;
}

.six_diamonds {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -366px -295px;
}

.seven_diamonds {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -440px -295px;
}

.eight_diamonds {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -512px -295px;
}

.nine_diamonds {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -586px -295px;
}

.ten_diamonds {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -658px -295px;
}

.jack_diamonds {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -732px -295px;
}

.queen_diamonds {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -804px -295px;
}

.king_diamonds {
 width: 71px;
 height: 97px;
 background: url(http://dobsondev.com/wp-content/uploads/2015/04/windows-playing-cards.png) -878px -295px;
}
              
            
!

JS

              
                
              
            
!
999px

Console