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

              
                <!-- hrefプロパティがhttpで始まっているとアイコンがつくよ -->
<a href="https://tivel.jp/">アイコン付く</a><br>

<!-- 相対パスでもtargetが_blankならアイコンが付くよ -->
<a href="/" target="_blank">アイコン付く</a><br>

<!-- 相対パスでもclassにexlinkとつければアイコンがつくよ -->
<a href="/" class="exlink">アイコン付く</a><br>

<!-- hrefプロパティがhttpで始まっていてもclassにnotexがついてればアイコンが付かないよ -->
<a href="https://tivel.jp/" class="notex">アイコン付かない</a><br>

<!-- 相対パスやtargetが_blankでもclassにnotexがついてればアイコンが付かないよ -->
<a href="/" target="_blank" class="notex">アイコン付かない</a><br>

<!-- 相対パスだけではアイコンが付かないよ -->
<a href="/">アイコン付かない</a>
              
            
!

CSS

              
                /* aタグのhref属性がhttpから始まっている場合 .noexは除外 */
a[href^=http]:not(.notex)::after {
  content:"";
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-left: 5px;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAKCAYAAACALL/6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAO5QAADuUB1UTNawAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAADdSURBVBiVYzxn5fCGTUKSmQEH+P/zB9Ofrz/qDfZvm8DAwMDAwsLLw8oqKsyHS8O/b98Y/v18JQDjM14JDHvLa24q9OvZc4Zfz19gsYKBgeE/w38GRsb/rCJCn1m4NNU/ypWXCF32CmBgl5PFZREjAwMD48/nz/mZcKnABVhgDDZJCQb56nK8ih+1dTGw/Hn3nu3b9RsMTOzsDOyyMng1MLKxMjB9vXGr/HZ+aeb/f//+E+Wm////M/z//5/hVkbu3/8EwO28ov+M//9DDL5TUPqJ4f8/XryG//v/CwDY9m8jCOSUEAAAAABJRU5ErkJggg==) no-repeat scroll left center transparent;
}

/* aタグのtarget属性が_blankの場合 .noexは除外 */
a[target=_blank]:not(.notex)::after {
  content:"";
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-left: 5px;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAKCAYAAACALL/6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAO5QAADuUB1UTNawAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAADdSURBVBiVYzxn5fCGTUKSmQEH+P/zB9Ofrz/qDfZvm8DAwMDAwsLLw8oqKsyHS8O/b98Y/v18JQDjM14JDHvLa24q9OvZc4Zfz19gsYKBgeE/w38GRsb/rCJCn1m4NNU/ypWXCF32CmBgl5PFZREjAwMD48/nz/mZcKnABVhgDDZJCQb56nK8ih+1dTGw/Hn3nu3b9RsMTOzsDOyyMng1MLKxMjB9vXGr/HZ+aeb/f//+E+Wm////M/z//5/hVkbu3/8EwO28ov+M//9DDL5TUPqJ4f8/XryG//v/CwDY9m8jCOSUEAAAAABJRU5ErkJggg==) no-repeat scroll left center transparent;
}

/* aタグのclassにexlinkがある場合 */
a.exlink::after {
  content:"";
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-left: 5px;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAKCAYAAACALL/6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAO5QAADuUB1UTNawAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAADdSURBVBiVYzxn5fCGTUKSmQEH+P/zB9Ofrz/qDfZvm8DAwMDAwsLLw8oqKsyHS8O/b98Y/v18JQDjM14JDHvLa24q9OvZc4Zfz19gsYKBgeE/w38GRsb/rCJCn1m4NNU/ypWXCF32CmBgl5PFZREjAwMD48/nz/mZcKnABVhgDDZJCQb56nK8ih+1dTGw/Hn3nu3b9RsMTOzsDOyyMng1MLKxMjB9vXGr/HZ+aeb/f//+E+Wm////M/z//5/hVkbu3/8EwO28ov+M//9DDL5TUPqJ4f8/XryG//v/CwDY9m8jCOSUEAAAAABJRU5ErkJggg==) no-repeat scroll left center transparent;
}
              
            
!

JS

              
                
              
            
!
999px

Console