Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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

              
                <body class="bg-slate-100">
  <!-- Credit Card Form Section --> 
  <main class="flex justify-center items-center h-screen">
    <section class="flex flex-col w-[500px] items-center gap-4">
      <!-- Card Card -->
      <div class="bg-gradient-to-r from-teal-500/60 to-blue-500/90 rounded-xl backdrop-blur-md shadow-xl shadow-black/60 w-96 h-60 py-4 px-8 text-white">
        <!-- Bank Name Row -->
        <div class="flex justify-between">
          <p class="text-bold"><b>Credit</b>Card</p>
          <div class="flex relative">
            <div class="bg-red-500 h-8 w-8 rounded-full absolute right-5 top-1 z-10"></div>
            <div class="bg-amber-500 h-8 w-8 rounded-full absolute right-0 top-1"></div>
          </div>
        </div>
        <!--  Chip Row  -->
        <img class="my-2 w-12 h-12" alt="Icons8 flat sim card chip" src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Icons8_flat_sim_card_chip.svg/512px-Icons8_flat_sim_card_chip.svg.png">

        <!--  Number Row  -->
        <label class="text-xs uppercase">Card Number</label>
        <div class="text-bold text-2xl flex justify-between drop-shadow-2xl">
          <p id="number-1">1234</p>
          <p id="number-2">5678</p>
          <p id="number-3">9876</p>
          <p id="number-4">5643</p>
        </div>
        <!-- Card Holder -->
        <div class="flex justify-between">
          <div>
            <label class="text-xs uppercase">Card Holder</label>
            <p class="text-xl">Max Mustermann</p>
          </div>
          <div>
            <Label class="text-xs uppercase">Valid Till<label>
            <p class="text-xl">02/32</p>
          </div>
        </div>
      </div>
      <!--  Credit Card Form -->
      <div class="bg-gray-300/40 backdrop-blur-md shadow-lg h-auto w-full p-4 text-slate-500 text-bold text-xl gap-2 font-mono  rounded-xl">
        <form>
          <div class="flex flex-col gap-2">
            <!-- Card Number -->
            <label>Card Number</label>
            <input class="text-black bg-slate-400/30 pl-4" type="tel" inputmode="numeric" id="card_number" placeholder="XXXX XXXX XXXX XXXX" maxlength="16"></input>
            <!-- Card Holder -->
            <label>Card Holder</label>
            <input class="text-black bg-slate-400/30 pl-4" type="text"  placeholder="Max Mustermann"></input>
            <!-- Expiry Date  & CVV-->
            <div class="flex justify-between">
              <div class="flex flex-col">
              <label>Expiry Date</label>
                <div class="flex flex-row gap-2">
                  <input class="w-14 text-black bg-slate-400/30 pl-4" type="numeric" placeholder="MM" maxlengt="2"></input>
                  <input class="w-20 text-black bg-slate-400/30 pl-4" type="numeric" placeholder="YYYY" maxlength="4"></input>
                </div>
              </div>
              <div class="flex flex-col">
                <label>CVV</label>
                <input class="w-20 text-black bg-slate-400/30 pl-4" type="numeric" placeholder="XXX" maxlength="3"></input>
              </div>
            </div>
          </div>
          <button type="button" class="bg-gradient-to-r from-pink-500 to-red-500 m-2 rounded-full mt-4 py-1 px-4 text-white text-lg">Submit</button>
        </form>
      </div>
    </section>
  </main>
</body>
              
            
!

CSS

              
                
              
            
!

JS

              
                

              
            
!
999px

Console