cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <div class="inspiration">
  To improve my HTML and CSS I code good looking pixels from Dribble.
  <br>
  <a href="https://dribbble.com/shots/2157030-Day-023-Wallet-My-Expenses"> This one is from Paul Flavius Nechita.</a>
</div>

<div class="container">
  <div class="sidebar">
    <h2>My wallets</h2>
    <span class="plus"></span>

    <div class="card selected">
      <div class="card-visa">
        <img src="https://d3ui957tjb5bqd.cloudfront.net/images/screenshots/products/3/39/39863/icon_preview_001-o.png" />
      </div>
      <div class="card-number">**** **** **** 2562</div>
      <div class="card-val">Valid Thru: 12/17</div>
    </div>

    <div class="card">
      <div class="card-amex">
        <img src="https://d3ui957tjb5bqd.cloudfront.net/images/screenshots/products/3/39/39863/icon_preview_001-o.png" />
      </div>
      <div class="card-number">**** ****** 21001</div>
      <div class="card-val">Valid Thru: 07/19</div>
    </div>

    <div class="card">
      <div class="card-mastercard">
        <img src="https://d3ui957tjb5bqd.cloudfront.net/images/screenshots/products/3/39/39863/icon_preview_001-o.png" />
      </div>
      <div class="card-number">**** **** **** 8335</div>
      <div class="card-val">Valid Thru: 09/17</div>
    </div>
  </div>

  <div class="main">
    <h2>Current Balance: <b>$ 4,729.<small>00</small></b></h2>

    <div class="item">
      <div class="item-sign">-</div>
      <div class="item-name">Apple iPhone 6, 64 GB</div>
      <div class="item-description">Electronics #343223 - 12 July,2015</div>
      <div class="item-price">$ 650.<small>00</small></div>
    </div>

    <div class="item">
      <div class="item-sign">+</div>
      <div class="item-name">Founds Added</div>
      <div class="item-description">Payment #343212 - 11 July,2015</div>
      <div class="item-price green">$ 900.<small>00</small></div>
    </div>

    <div class="item">
      <div class="item-sign">-</div>
      <div class="item-name">Energy Bill</div>
      <div class="item-description">#343566 - 11 July,2015</div>
      <div class="item-price">$ 84.<small>96</small></div>
    </div>

    <div class="item">
      <div class="item-sign">-</div>
      <div class="item-name">Mega Image SRL</div>
      <div class="item-description">Food&Health #34365 - 11 July,2015</div>
      <div class="item-price">$ 112.<small>75</small></div>
    </div>

    <div class="item">
      <div class="item-sign">-</div>
      <div class="item-name">ATM DV24</div>
      <div class="item-description">#343253 - 09 July,2015</div>
      <div class="item-price">$ 200.<small>00</small></div>
    </div>

    <div class="item">
      <div class="item-sign">-</div>
      <div class="item-name">Lukoil Station</div>
      <div class="item-description">Gas #343279 - 09 July,2015</div>
      <div class="item-price">$ 190.<small>48</small></div>
    </div>

    <div class="item">
      <div class="item-sign">+</div>
      <div class="item-name">Salary</div>
      <div class="item-description">#343218 - 08 July,2015</div>
      <div class="item-price green">$ 4,000.<small>00</small></div>
    </div>
  </div>
</div>
            
          
!
            
              /* GENERAL */
body {
  background-color: #FFCC66;
  font-family: 'Roboto'
}

/* INTRO TEXT */
.inspiration {
  color: rgba(0, 0, 0, .4);
  font-family: 'Arial';
  font-size: 18px;
  font-weight: 400;
  line-height: 2;
  margin: 32px auto 0;
  text-align: center;
  width: 100%;
}

.inspiration a {
  color: rgba(0, 0, 0, .4);
}

.inspiration a:hover {
  color: rgba(0, 0, 0, .6);
}

/* CONTAINER */
.container {
  background: #FFF;
  border-radius: 5px;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, .2);
  height: 800px;
  margin: 32px auto;
  overflow: auto;
  width: 100%;
}

/* MAIN - RIGHT PART */
.main {
  display: inline-block;
  height: 100%;
  left: 0;
  padding: 32px;
  vertical-align: top;
  width: 30%;
}

h2 {
  color: #727586;
  font-size: 32px;
  font-weight: 300;
}

h2 b {
  color: #444750;
  font-size: 32px;
  margin-left: 80px;
}

.main h2 {
  border-bottom: solid 1px #DDD;
  padding-bottom: 48px;
}

.item {
  margin: 48px 0;
  position: relative;
}

.item-sign {
  border-radius: 36px;
  border: solid 4px #EEE;
  color: #888;
  display: inline-block;
  font-size: 20px;
  font-weight: 900;
  height: 24px;
  position: absolute;
  text-align: center;
  top: 4px;
  width: 24px;
}

.item-name {
  color: #444750;
  display: inline-block;
  font-size: 18px;
  font-weight: 500;
  margin-left: 50px;
  width: 100%;
}

.item-description {
  color: #999;
  font-family: 'Roboto Mono';
  font-size: 13px;
  margin-left: 50px;
}

.item-price {
  color: #8392C9;
  font-size: 22px;
  font-weight: 500;
  margin-top: 10px
}

.item-price.green {
  color: #65CC33;
}

/* SIDEBAR - LEFT PART */
.sidebar {
  background: #F2F2F2;
  display: inline-block;
  left: 0;
  padding: 32px;
  width: 33.33%;
}
span.plus {
  background: transparent;
  border-radius: 3px;
  cursor: pointer;
  display: inline-block;
  transform: translate(250px, -64px);
}

span.plus::before {
  background: #CCC;
  border-radius: inherit;
  content: "";
  display: inline-block;
  height: 32px;
  transform: translate(16px, 2px);
  width: 5px;
}

span.plus::after {
  background: #CCC;
  border-radius: inherit;
  content: "";
  display: inline-block;
  height: 5px;
  transform: translate(-2px, -11px);
  width: 32px;
}

span.plus:hover::before,
span.plus:hover::after {
  background: #BBB;
}

span.plus:active::before,
span.plus:active::after {
  background: #AAA;
}

.card {
  background: #FFF;
  border-radius: 3px;
  border: solid 3px #CCC;
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  height: 170px;
  margin-bottom: 32px;
  padding: 20px;
  width: 100%;
}

.selected,
.card:hover {
  border: solid 4px #8392C9;
}

.card:active {
  border: solid 4px #6574AB;
}

.card-visa,
.card-amex,
.card-mastercard {
  border-radius: 0px;
  height: 44px;
  overflow: hidden;
  position: relative;
  width: 67px;
}

.card-visa img {
  position: absolute;
  transform: translate(-546px, -364px) scale(.5);
}

.card-amex img {
  position: absolute;
  transform: translate(-651px, -218px) scale(.5);
}

.card-mastercard img {
  position: absolute;
  transform: translate(-755px, -364px) scale(.5);
}

.card-number {
  color: #666;
  font-family: 'Roboto Mono';
  font-size: 20px;
  font-weight: 400;
  margin-top: 16px;
}

.card-val {
  color: #B3B3B3;
  font-family: 'Roboto Mono';
  margin-top: 12px;
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console