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

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

              
                 <ul class="flex-schedule">
      <li>
        <span class="time">04:00</span>
        <div class="area">

          <div class="sch_box">
            <p class="sch_title">起床</p>
            <p class="sch_tx">
              iPhoneSEのアラームで目覚める(う〜ん腰痛い) 
            </p>
          </div>
        </div>
      </li>
      <li>
        <span class="time">05:00</span>
        <div class="area">
          <div class="sch_box">
            <p class="sch_title">朝トレ</p>
            <p class="sch_tx">
              ジムで腰痛撃退ストレッチと<br>ローイングマシンをやる<br>(腰痛スッキリ) 
            </p>
          </div>
        </div>
      </li>
      <li>
        <span class="time">08:00</span>
        <div class="area">
          <div class="sch_box">
            <p class="sch_title">朝食</p>
            <p class="sch_tx">
              空腹状態で帰宅して朝ごはん<br>(たまにコンビニで早メシ^^)
            </p>
          </div>
        </div>
      </li>
      <li>
        <span class="time">10:00</span>
        <div class="area">
          <div class="sch_box">
            <p class="sch_title">風呂掃除</p>
            <p class="sch_tx">
              風呂掃除とシャワーを浴びる
            </p>
          </div>
        </div>
      </li>
       <li>
        <span class="time">10:30</span>
        <div class="area">
          <div class="sch_box">
            <p class="sch_title">仕事</p>
            <p class="sch_tx">
              ココナラ案件をさくっとやる
            </p>
          </div>
        </div>
      </li>
    </ul>
              
            
!

CSS

              
                *{
  margin:0;
  padding:0;
  line-height:1.3;
}
/* flex-schedul */
.flex-schedule {
  min-width: fit-content;
  max-width: fit-content;
  list-style: none;
  margin: 0 auto 0 0;
  box-sizing: border-box;
}

.flex-schedule li {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;

}

.flex-schedule .area {
  padding: 10px;
  display: block;
  width: 100%;
  border-left: 6px solid #ff0093;
}

.flex-schedule li .time {
  display: inline-flex;
  justify-content: flex-end;
  flex-basis: 5em;
  max-width: 5em;
  margin-right: 1em;
  margin-top: 30px;
}

.flex-schedule .sch_box {
  position: relative;
  min-height: 1em;
  padding: 1em;
  background: #ffd9e0;
  border-radius: 6px;
}

.flex-schedule .sch_box::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 20px;
  background: #ff0093;
  width: 20px;
  height: 20px;
  border-radius: 10px;
}

.flex-schedule .sch_title {
  font-weight: 700;
}

.flex-schedule .sch_tx {
  font-size: 14px;
  font-weight: normal;
}
              
            
!

JS

              
                
              
            
!
999px

Console