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

              
                <div class="flexbox">
  <div class="plan-table plan-free">
    <table>
      <tr><th>無料プラン</th></tr>
      <tr><td class="plan-price">無料</td></tr>
      <tr><td>Liveレッスン視聴</td></tr>
      <tr><td>無料イベント参加</td></tr>
      <tr><td>お知らせニュースレター購読</td></tr>
      <tr><td><a class="btn" href="#">会員登録</a></td></tr>
    </table>
  </div>
  <div class="plan-table plan-premium">
    <table>
      <tr><th>プレミアムプラン</th></tr>
      <tr><td class="plan-price">2,000<span> 円/月</span></td></tr>
      <tr><td>Liveレッスン視聴</td></tr>
      <tr><td>全イベント参加</td></tr>
      <tr><td>お知らせニュースレター購読</td></tr>
      <tr><td>テキストダウンロード可</td></tr>
      <tr><td>字幕表示</td></tr>
      <tr><td><a class="btn" href="#">会員登録</a></td></tr>
    </table>
  </div>
</div>
              
            
!

CSS

              
                body {
  padding: 3%;
}
.flexbox {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: column;
	flex-direction: column;
}

/* 
TABLE
================================================ */
table {
	width: 100%;
	border-bottom: 1px solid #ddd;
	width: 100%;
	margin-bottom: 15px;
	overflow-y: hidden;
	overflow-x: scroll;
	-ms-overflow-style: -ms-autohiding-scrollbar;
	border: 1px solid #ddd;
	-webkit-overflow-scrolling: touch;
}
th, td {
	padding: 15px;
  text-align: center;
	vertical-align: top;
	border-top: 1px solid #ddd;
	border-right: 1px solid #ddd;
}
tr:nth-child(even)>td,
tr:nth-child(even)>th {
	background-color: #efefef;
}
th,
.plan-price {
	color: #fff;
}
.plan-price {
	font-size: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.2);
  padding: 25px 0;
}
.plan-price span {
	font-size: 1rem;
}

/* Background colour */
.plan-free th,
.plan-free .plan-price {
	background: linear-gradient(-90deg, #009ADB, #00DB9A);
}
.plan-premium th,
.plan-premium .plan-price {
	background: linear-gradient(-90deg, #EE52FF, #009ADB);
}
/* 
BUTTON
================================================ */
.btn{
	color: #fff;
	font-size: 1.2rem;
	text-decoration: none;
	background: #6fc173;
	border-radius: 5px;
	box-shadow: 0 3px #449f49 ;
	position: relative;
	display: inline-block;
	top: -2px;
	padding: 15px;
	width: 80%;
	text-align: center;
	margin: 10px 0;
}
.btn:hover {
	box-shadow: 0 1px #449f49;
	top: 1px;
}

/* 
LARGE DISPLAY
================================================ */
@media ( min-width : 700px ){
	.flexbox {
		-webkit-flex-direction: row;
		flex-direction: row;
	}
  .plan-table {
    margin-left: 3%;
  }
  .plan-table:first-of-type {
    margin-left: 0;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console