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 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.

            
              <h5>orderをFlex Item1が0、Flex Item2が1、Flex Item3が2と指定</h5>
<div class="flexContainer01">
<div class="flexItem1">Flex Item1</div>
<div class="flexItem2">Flex Item2</div>
<div class="flexItem3">Flex Item3</div>
</div>
<h5>orderをFlex Item1が2、Flex Item2が1、Flex Item3が0と指定</h5>
<div class="flexContainer02">
<div class="flexItem1">Flex Item1</div>
<div class="flexItem2">Flex Item2</div>
<div class="flexItem3">Flex Item3</div>
</div>
<h5>orderをFlex Item1が1、Flex Item2が0、Flex Item3が2と指定</h5>
<div class="flexContainer03">
<div class="flexItem1">Flex Item1</div>
<div class="flexItem2">Flex Item2</div>
<div class="flexItem3">Flex Item3</div>
</div>
<h5>FlexItem1だけorderを1と指定(他の2つは初期値0のままなので一番最後に移動する)</h5>
<div class="flexContainer04">
<div class="flexItem1">Flex Item1</div>
<div class="flexItem2">Flex Item2</div>
<div class="flexItem3">Flex Item3</div>
</div>
<h5>FlexItem1だけorderを2と指定(他の2つは初期値0のままなので一番最後に移動する)</h5>
<div class="flexContainer05">
<div class="flexItem1">Flex Item1</div>
<div class="flexItem2">Flex Item2</div>
<div class="flexItem3">Flex Item3</div>
</div>
            
          
!
            
              .flexContainer01{
  background:#f5ebd7;
  display:flex;/*子要素がFlex itemになる*/
}
.flexContainer01 div{
  border:1px solid #fff;
  padding:20px;
  background:#534a47;
  color:#fff;
  width:100px;
  text-align:center;
}
.flexContainer01 .flexItem1{
  order:0;
}
.flexContainer01 .flexItem2{
  order:1;
}
.flexContainer01 .flexItem3{
  order:2;
}

.flexContainer02{
  background:#f5ebd7;
  display:flex;/*子要素がFlex itemになる*/
}
.flexContainer02 div{
  border:1px solid #fff;
  padding:20px;
  background:#534a47;
  color:#fff;
  width:100px;
  text-align:center;
}
.flexContainer02 .flexItem1{
  order:2;
}
.flexContainer02 .flexItem2{
  order:1;
}
.flexContainer02 .flexItem3{
  order:0;
}

.flexContainer03{
  background:#f5ebd7;
  display:flex;/*子要素がFlex itemになる*/
}
.flexContainer03 div{
  border:1px solid #fff;
  padding:20px;
  background:#534a47;
  color:#fff;
  width:100px;
  text-align:center;
}
.flexContainer03 .flexItem1{
  order:1;
}
.flexContainer03 .flexItem2{
  order:0;
}
.flexContainer03 .flexItem3{
  order:2;
}

.flexContainer04{
  background:#f5ebd7;
  display:flex;/*子要素がFlex itemになる*/
}
.flexContainer04 div{
  border:1px solid #fff;
  padding:20px;
  background:#534a47;
  color:#fff;
  width:100px;
  text-align:center;
}
.flexContainer04 .flexItem1{
  order:1;
}

.flexContainer05{
  background:#f5ebd7;
  display:flex;/*子要素がFlex itemになる*/
}
.flexContainer05 div{
  border:1px solid #fff;
  padding:20px;
  background:#534a47;
  color:#fff;
  width:100px;
  text-align:center;
}
.flexContainer05 .flexItem1{
  order:2;
}
            
          
!
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