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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.


  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <link rel="stylesheet" type="text/css" href="">

  <header id="header">
  <p class="caution">一番下までスクロールして「Page Top」をクリックしてね<br>↓ ↓ ↓</p>
      <h2>名言 1</h2>
      <h2>名言 2</h2>
      <h2>名言 3</h2>
      <p>「負けたことがある」というのが いつか 大きな財産になる</p>
      <h2>名言 4</h2>
      <h2>名言 5</h2>

  <footer id="footer">
    <p id="page-top"><a href="#">Page Top</a></p>
    <small>&copy; copyright.</small>

  <script src="" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>



                @charset "utf-8";

/*========= ページトップのためのCSS ===============*/

#page-top a {
  background: #942d2f;
  color: #fff;
  text-align: center;
  display: block;
  text-decoration: none;
  padding: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  transition: all 0.3s;

#page-top a:hover {
  background: #777;

/*========= レイアウトのためのCSS ===============*/

body {
  width: 100%;
  height: 100vh;
  vertical-align: middle;

h1 {
  font-size: 1.2rem;

h2 {
  font-size: 1.2rem;
  text-align: center;
  margin: 0 0 30px 0;

p {
  margin-top: 20px;

.caution {
  color: red;
  text-align: center;
  font-size: clamp(12px, 2.5vw, 1.2rem);
  font-weight: bold;
  white-space: nowrap;

small {
  background: #333;
  color: #fff;
  display: block;
  text-align: center;
  padding: 20px;

#header {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;

section {
  padding: 100px 30px;

section:nth-child(2n) {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  background-image: linear-gradient(
    rgba(255, 255, 255, 1) 5%,
    rgba(252, 225, 208, 1) 15%,
    rgba(255, 173, 214, 1) 50%,
    rgba(162, 186, 245, 0.8) 80%,
    rgba(255, 255, 255, 1) 95%

#footer {
  position: relative;
  z-index: 2;



                // #page-topをクリックした際の設定
$("#page-top").click(function () {
      scrollTop: 0 //ページトップまでスクロール
  ); //ページトップスクロールの速さ。数字が大きいほど遅くなる
  return false; //リンク自体の無効化