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="container mt-3">
  <div class="row w-75">
      <div class="col border p-3 rounded">
        <i class="fas fa-envelope fa-3x"></i>
      </div>
      <div class="col border p-3 rounded">
        <i class="fas fa-user fa-3x"></i>
      </div>
      <div class="col border p-3 rounded">
        <i class="fas fa-phone fa-3x"></i>
      </div>
      <div class="col border p-3 rounded">
        <i class="fas fa-fax fa-3x"></i>
      </div>
  </div>
  <div class="row w-75">
    <div class="col border p-3 rounded">
      <i class="fas fa-user-edit fa-3x"></i>
    </div>
    <div class="col border p-3 rounded">
      <i class="fas fa-users fa-3x"></i>
    </div>
    <div class="col border p-3 rounded">
      <i class="fas fa-sync-alt fa-3x"></i>
    </div>
    <div class="col border p-3 rounded">
      <i class="far fa-star fa-3x"></i>
    </div>
  </div>
  <div class="row w-75">
    <div class="col border p-3 rounded">
      <i class="far fa-thumbs-up fa-3x"></i>
    </div>
    <div class="col border p-3 rounded">
      <i class="fas fa-trash-alt fa-3x"></i>
    </div>
    <div class="col border p-3 rounded">
      <i class="fas fa-plus fa-3x"></i>
    </div>
    <div class="col border p-3 rounded">
      <i class="fas fa-minus fa-3x"></i>
    </div>
  </div>
  <div class="row w-75">
    <div class="col border p-3 rounded">
      <i class="far fa-file fa-3x"></i>
    </div>
    <div class="col border p-3 rounded">
      <i class="far fa-folder fa-3x"></i>
    </div>
    <div class="col border p-3 rounded">
      <i class="fas fa-plus fa-3x"></i>
    </div>
    <div class="col border p-3 rounded">
      <i class="fas fa-minus fa-3x"></i>
    </div>
  </div>
  <div class="row w-75">
    <div class="col border p-3 rounded">
      <i class="fas fa-search fa-3x"></i>
    </div>
    <div class="col border p-3 rounded">
      <i class="fas fa-chevron-up fa-3x"></i>
    </div>
    <div class="col border p-3 rounded">
      <i class="fas fa-chevron-down fa-3x"></i>
    </div>
    <div class="col border p-3 rounded">
      <i class="fas fa-chevron-left fa-3x"></i>
    </div>
  </div>
  <div class="row w-75">
    <div class="col border p-3 rounded">
      <i class="fas fa-chevron-right fa-3x"></i>
    </div>
    <div class="col border p-3 rounded">
      <i class="far fa-edit fa-3x"></i>
    </div>
    <div class="col border p-3 rounded">
    </div>
    <div class="col border p-3 rounded">
    </div>
  </div>
  <a href="https://fontawesome.com/icons" target="_blank" class="mt-3">font awesome isons</a>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                $(function() {
  $("i").click(function() {    
    var target_tag =$(this).parent().html();
    target_tag = target_tag.replace(' fa-3x', '');
    
    document.addEventListener('copy', function(e){
        e.clipboardData.setData('text/plain', target_tag);
        e.preventDefault();
        },
       {once:true}
    );

    document.execCommand("copy");
    
    $.toast({
      text:"コピーしました。:" + target_tag,
      textAlign : 'left',
      position : 'top-left',
    });
  });
});
              
            
!
999px

Console