cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

            
              <html>
  <head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="card.css">
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600" rel="stylesheet"> 
    <title>Credit Card Form</title>
  </head>
  <body>
  <div class="cardBox">
    <div class="left">

 <svg width="223px" height="400px" viewBox="88 194 203 135" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
     <!-- Generator: Sketch 42 (36781) - http://www.bohemiancoding.com/sketch -->
     <desc>Created with Sketch.</desc>
     <defs></defs>
     <g id="ShoppingCart" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(91.000000, 197.000000)">
         <circle id="Oval" stroke="#FFFFFF" stroke-width="4" cx="77" cy="114" r="16"></circle>
         <circle id="Oval-Copy" stroke="#FFFFFF" stroke-width="4" cx="163" cy="114" r="16"></circle>
         <path d="M0.4609375,0.484375 L25.1042483,0.290117471 C32.8412236,0.229128682 40.7839789,6.22465222 42.8424587,13.6727008 L60.1145726,76.167143 C62.1741404,83.6191284 70.1102715,89.6601562 77.8460556,89.6601562 L164.502269,89.6601562 C172.235529,89.6601562 184.777428,89.6601562 184.848676,89.6601562 L178.504574,89.6601562" id="Path-2" stroke="#FFFFFF" stroke-width="5"></path>
         <g id="Total" transform="translate(69.000000, 0.000000)" font-family="HelveticaNeue, Helvetica Neue" fill="#FFFFFF" font-weight="normal">
             <text id="150" font-size="60">
                 <tspan x="0" y="57">150</tspan>
             </text>
             <text id="00" font-size="20">
                 <tspan x="107" y="29">00</tspan>
             </text>
         </g>
     </g>
 </svg>
    </div>

    <form class = "form" action="index.html" method="post">
      <div class="title">
        Enter card info
      </div>
        <div class="fieldTitle">
          Name
      </div>
      <input class="name" type="text" name="name" placeholder="Eddy Exampleson">
      <div class="fieldTitle">
        Card Number
      </div>
      <div class="cardNum">
        <input class = "digits" type="text" name="cardNum1" placeholder="0000">
        <input class = "digits" type="text" name="cardNum2" placeholder="0000">
        <input class = "digits" type="text" name="cardNum3" placeholder="0000">
        <input class = "digits" type="text" name="cardNum4" placeholder="0000">
      </div>
      <div class="fieldTitle">
        Expiration Date <span class = "fieldTitle cvvTitle">CVV</span>
      </div>
      <div class="expDate">
        <input type="text" name="expM" class = "expM" placeholder="MM">
        <input type="text" name="expY" class = "expY" placeholder="YYYY">
        <input type="text" name="cvv" class = "cvv" placeholder="###"><br>
        </div>
        <div class="add"><div class="content">
          Add Card</div>
        </div>
    </form>
  </div>
  </body>
</html>
            
          
!
            
              body {
  font-family: 'Open Sans';
  margin: 0 auto;
  background: linear-gradient(to right, #2e3542, #4c586c);
}

.cardBox {
  width: 713px;
  height: 384px;
  border-radius: 13px;
  //border: 2px solid #3e3d3f;
  margin: 0 auto;
  margin-top: 50px;
  background-color: #ffffff;
  box-shadow: 0px 0px 4px #181b27;
}

.left {
  width: 236px;
  height: 384px;
  background-color: #0e0e0e;
  border-top-left-radius: 11px;
  border-bottom-left-radius: 11px;
  background-image: radial-gradient(
      circle at top right,
      #008bff,
      #004c8a 80%
    );

}

.form {
  //border: 1px solid #3f3f3f;
  width: 340px;
  height: 359px;
  position: relative;
  bottom: 375px;
  left: 300px;
}

.title {
  color: #26394f;
  font-size: 30px;
  font-weight: bold;
  position: relative;;
  right: 3px;
}

.fieldTitle {
  color: #343434;
  font-weight: 400;
  font-size: 14px;
  margin-top: 20px;
  margin-bottom: 12px;
  letter-spacing: 2.1px;
}

.cvvTitle {
  position: relative;
  left: 90px;
}

.name {
  font-size: 18px;
  font-weight: 300;
  position: relative;
  left: 12px;
  width: 315px;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid #232222;
  opacity: 0.3;
}

.cardNum {
  position: relative;
  font-weight: 300;
  left: 12px;
}


.digits {
  width: 55px;
  font-size: 18px;
  font-weight: 300;
  margin-right: 8px;
  letter-spacing: 3.73px;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid #232222;
  opacity: 0.3;
}

.expDate {
  position: relative;
  left: 12px;
}

.expM {
  font-size: 18px;
  width: 35px;
  font-weight: 300;
  margin-right: 15px;
  letter-spacing: 3.73px;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid #232222;
  opacity: 0.3;
}

.expY {
  font-size: 18px;
  width: 55px;
  font-weight: 300;
  letter-spacing: 2.79px;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid #232222;
  opacity: 0.3;
}

.cvv {
  font-size: 18px;
  width: 45px;
  font-weight: 300;
  margin-left: 102px;
  letter-spacing: 2.9px;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid #232222;
  opacity: 0.3;
}

.add {
  font-size: 22px;
  font-weight: bold;
  position: relative;
  top: 35px;
  left: 103px;
  width: 190px;
  height: 50px;
  cursor: pointer;
  border-radius: 7px;
  //border: 1px solid #3f3f3f;
  text-align: center;
  color: #ffffff;
  background-image: linear-gradient(-90deg, #00b38f 0%, #00cca3 100%);
}

.content {
  position: relative;
  top: 10px;
  bottom: 15px;
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console