css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <div class="wrap">
  <div class="lud-7 lud">
    <p class="sub-title">7. 色付きの背景には、いつも灰色が最適です。</p>
    <p>Either saturate your text with the same hue as the background, or use rgba with a lowered opacity to make the color of the text combine better with the background.</p>
    <div class="ex-7 example">
      <p class="title">会員登録はこちらから</p>
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Odit molestiae nihil iusto mollitia amet provident, expedita dolorum facilis porro! Hic laboriosam.</p>
      <input type="text" placeholder="メールアドレスを入力...">
  margin: 0;
  outline: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Open Sans', 'Roboto',YuGothic, "Yu Gothic", 游ゴシック体, 游ゴシック, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Roboto, メイリオ, Meiryo, "MS Pゴシック", Osaka, "MS PGothic", Arial, Helvetica, Verdana, sans-serif;

  margin: 2rem auto 0;
  width: 90%;
  max-width: 48rem;

  font-weight: normal;
  margin-bottom: 2rem;

.wrap p{
  font-size: 1.125rem;
  color: #444;
  line-height: 2;
  margin-bottom: 1rem;

.wrap a{
  color: #4687c9;

.wrap p.sub-title{
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 1rem;
  line-height: 1.5;

  margin: 4rem 0 4rem;

.lud p:nth-child(3){
  font-size: 12px;
  font-style: italic;

  margin-top: 2.5rem;

/* サンプル用スタイリング */
  background: #568695;
  padding: 2rem;

.ex-7 .title{
  color: #fff;
  font-size: 1.5rem;

.ex-7 p:not(.title){
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;

.ex-7 input{
  height: 2.25rem;
  padding: 0 .75rem;
  border: 0;
  font-size: .875rem;
  width: 15rem;
  border-radius: 5px 0 0 5px;

.ex-7 input::placeholder{
  color: #bbb;

.ex-7 button{
  background: hsl(43, 62%, 72%);
  border: none;
  border-radius: 0 5px 5px 0;
  height: 2.25rem;
  margin-left: -.25rem;
  padding: 0 1rem;
  color: rgba(0,0,0,0.6);
  font-weight: bold;
  cursor: pointer;

.ex-7 button:hover{
  background: hsl(43, 50%, 65%);
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................