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

              
                <table>
  <caption>Statement Summary</caption>
  <thead>
    <tr>
      <td data-label="Account">お名前</td>
      <td data-label="Due Date"><input size="20" type="text" name="お名前" placeholder="Sam Sample"/> ※ required</td>
    </tr>
    <tr>
      <td scope="row" data-label="Account">メールアドレス</td>
      <td data-label="Due Date"><input size="20" type="text" name="Email" placeholder="info@infoinfo.co.jp"/> ※ required</td>
    </tr>
    <tr>
      <td scope="row" data-label="Account">Where did you know about this site ?</td>
      <td data-label="Due Date"><input name="サイトを知ったきっかけ[]" type="checkbox" value="友人・知人" /> From friends </br >
          <input name="サイトを知ったきっかけ[]" type="checkbox" value="検索エンジン" /> Google or another search engine</td>
    </tr>
    <tr>
      <td scope="row" data-label="Acount">Message</td>
      <td data-label="Due Date"><textarea name="message" cols="30" rows="5"></textarea></td>
    </tr>
      <tr>
       <td colspan="2" style="text-align:center;"><input type="submit" class="square_btn" value="Submit" align="center"><input type="reset" class="reset_btn" value="reset" />
       </td>
      </tr>
  </tbody>
</table>
              
            
!

CSS

              
                body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.25;
  background-position: center;
  width: 100%;  
}
table {
  width: 60%;  
  margin: 0 auto;  
  border: 1px solid #ccc;
  border-collapse: collapse;
  padding: 0;
  table-layout: fixed;
}
table caption {
  font-size: 1.5em;
  margin: .5em 0 .75em;
}
table tr {
  background: #f8f8f8;
  border: 1px solid #ddd;
  padding: .35em;
}
table th,
table td {
  padding: .625em;
  text-align: left;
  border: 1px solid #ddd;
}
table th {
  font-size: .85em;
  letter-spacing: .1em;
  text-transform: uppercase;
}
@media screen and (max-width: 600px) {
  table {
    border: 0;
  }
  table caption {
    font-size: 1.3em;
  }
  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  table tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: .625em;
  }
  table td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: .8em;
    text-align: right;
  }
  table td:before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  table td:last-child {
    border-bottom: 0;
  }
}
  
 /* 送信ボタン */
.square_btn {
   margin-right: 15px;
    display: inline-block;
    padding: 0.5em 1em;
    text-decoration: none;
    background: #668ad8;/*ボタン色*/
    color: #668ad8;/*ボタン色と同じに*/
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.29);
    border-bottom: solid 3px #627295;
    border-radius: 3px;/*角の丸み*/
    font-weight: bold;
    text-shadow: -1px -1px rgba(255, 255, 255, 0.44), 1px 1px rgba(0, 0, 0, 0.38);
  }
 
.reset_btn {
    display: inline-block;
    padding: 0.5em 1em;
    text-decoration: none;
    background: #ff6347;
    color: #ff6347;/*ボタン色と同じに*/
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.29);
    border-bottom: solid 3px #627295;
    border-radius: 3px;/*角の丸み*/
    font-weight: bold;
    text-shadow: -1px -1px rgba(255, 255, 255, 0.44), 1px 1px rgba(0, 0, 0, 0.38);
}  
.square_btn:active{/*ボタンを押したとき*/
    -ms-transform: translateY(4px);
    -webkit-transform: translateY(4px);
    transform: translateY(4px);
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.2);
    border-bottom: none;
}

              
            
!

JS

              
                
              
            
!
999px

Console