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

+ 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 id="page-wrapper">
      <header id="header">

        <nav id="nav-bar">
          <ul>
            <img src="https://www.mobygames.com/images/i/31/07/2066557.png" alt="Company-img" id="header-img">
            <li class="nav-item">
              <a class="nav-link" href="#album">Album</a></li>
            <li class="nav-item">
              <a class="nav-link" href="#demo">Demo</a></li>
            <li class="nav-item">
              <a class="nav-link" href="#detail">Detail</a></li>
          </ul>
        </nav>

      </header>
      <div class="container"></div>

      <main id="main">
        <section id="album">
          <div id="albumPic"><img id="album-img" src="https://images-na.ssl-images-amazon.com/images/I/81In081H5vL._AC_SL1500_.jpg" alt="Album"></div>
          <div id="albumDetail">
            <hr>
            <div id="albumName" class="albumGroup">
              <h4>Title</h4>
              <p>I believe what you said</p>
            </div>

            <div id="release" class="albumGroup">
              <h4>Release</h4>
              <p>2020.10.14</p>
            </div>

            <div id="price" class="albumGroup">
              <h4>Price</h4>
              <p>¥1,600 + tax</p>
            </div>

            <div id="productNo" class="albumGroup">
              <h4>Product No</h4>
              <p>USSW-0271</p>
            </div>

            <div id="spec" class="albumGroup">
              <h4>Spec</h4>
              <p>CD</p>
            </div>
            <hr>
          </div>
        </section>
        <section id="demo">
          <iframe id="video" src="https://www.youtube.com/embed/GVH9hCqA1U8" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
        </section>
        <section id="detail">
          <div id="soundtrack">
            <h4>Disc1 CD</h4>
            <p>1.I believe what you said
            </p>
            <p>2.SCREEEAM!!!</p>
            <p>3.Last Friday Night</p>
            <p>4.I believe what you said -off vocal-</p>
            <p>5.SCREEEAM!!! -off vocal-</p>
            <p>6.Last Friday Night -off vocal-</p>
          </div>
          <a class="methodLink">
            <div class="method">
              <p>$800</p>
              <p>Original</p>
              <hr>
              <p>CD x 1</p>
            </div>
          </a>
          <a class="methodLink">
            <div class="method">
              <p>$1000</p>
              <p>Special edition</p>
              <hr>
              <p>CD x 1</p>
              <p>Blu ray Anime x 1</p>
            </div>
          </a>
          <a class="methodLink">
            <div class="method">
              <p>$1200</p>
              <p>Limited edition</p>
              <hr>
              <p>CD x 1</p>
              <p>Blu ray Anime x 1</p>
              <p>Character Figure x 1</p>
            </div>
          </a>

        </section>

        <form action="https://www.freecodecamp.com/email-submit" id="form">
          <input type="email" id="email" placeholder="Please contact us if you are interested our product" name="email" required />

          <input id="submit" type="submit" value="Submit" />

        </form>
      </main>
      <footer id="footer">
        <p>This web page is only for the website develop practice purpose.</p>
        <p>All the content are copy the original <a href="http://asaka1007.jp/discography/i_believe_what_you_said/">website</a></p>
      </footer>
    </div>
    <link rel="stylesheet" href="style.css">
    <link href="https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap" rel="stylesheet">
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
              
            
!

CSS

              
                body {
  background: url(https://images.unsplash.com/photo-1522441815192-d9f04eb0615c?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=2082&q=80);
  background-repeat: no-repeat;
  background-size: cover;
  font-family: "Kaushan Script", cursive;
}

#header {
  text-align: center;
  width: 100%;
  padding: 5px;
  position: fixed;
  background-color: rgba(240, 248, 255, 1);
}

.container {
  width: 100%;
  margin: 0 auto;
  height: 100px;
}

#header img {
  width: 55px;
  height: 55px;
}

#nav-bar ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
}

.nav-item {
  list-style: none;
  flex: auto;
  margin: 5px;
  font-size: 24px;
}

.nav-item :hover {
  color: rgba(158, 103, 209, 0.418);
}

#main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#album {
  display: flex;
  justify-content: center;
  padding: 15px;
  margin: 5px;
  width: 100%;
  height: 550px;
}
#albumDetail {
  margin: 15px;
  width: 300px;
  height: 500px;

  text-align: center;
  border-radius: 20px;
}

.albumGroup {
  width: 270px;
  height: 70px;
  font-size: 16px;
  /* background-color: aqua; */
}

#albumPic {
  width: 500px;
  height: 500px;
  margin: 15px;
  border: 2px solid palegreen;
}

#album-img {
  width: 500px;
  height: 500px;
}

#demo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5px;
  width: 100%;
  height: 550px;
}

#video {
  width: 760px;
  height: 515px;
}

#detail {
  display: flex;
  justify-content: center;
  margin: 5px;
  width: 100%;
  height: 550px;
}

#soundtrack {
  width: 400px;
  height: 400px;
  background-color: #fae13c44;
  border-radius: 15px;
  margin: 15px;
  font-size: 18px;
}

.method {
  width: 240px;
  height: 320px;
  margin: 40px 0 0 40px;
  padding: 10px;
  border-radius: 5px;
  border: 2px solid rgba(241, 241, 237, 0.698);
  box-shadow: 2px 2px 2px;
  text-align: center;
  font-size: 17.5px;
}

.methodLink :hover {
  background-color: rgba(96, 96, 104, 0.424);
}

hr {
  box-shadow: 2px 2px 2px;
}

#form {
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 800px;
  background-color: rgba(48, 56, 54, 0.13);
  align-items: center;
}

#email {
  margin: 5px;
  width: 70%;
  height: 25px;
}

#submit {
  margin: 5px;
  width: 200px;
  background-color: rgba(81, 187, 152, 0.281);
}

#footer {
  text-align: center;
  font-size: larger;
}

@media (max-width: 1200px) {
  #detail {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 5px;
    width: 100%;
    height: 1550px;
  }
  #soundtrack {
    max-width: 95%;
    height: 400px;
    background-color: #fae13c44;
    border-radius: 15px;
    margin: 15px;
    font-size: 18px;
  }
  .method {
    max-width: 65%;
    max-height: 240px;
    margin: 40px 0 0 40px;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid rgba(241, 241, 237, 0.698);
    box-shadow: 2px 2px 2px;
    text-align: center;
    font-size: 17.5px;
  }
}

@media (max-width: 860px) {
  #album {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    flex-direction: column;
    width: 100%;
    height: 880px;
  }
  #albumDetail {
    margin: 15px;
    max-width: 280px;
    max-height: 500px;
    text-align: center;
    border-radius: 20px;
  }

  .albumGroup {
    width: 270px;
    height: 70px;
    font-size: 16px;
    /* background-color: aqua; */
  }

  #albumPic {
    max-width: 350px;
    max-height: 350px;
    margin: 15px;
    border: 2px solid palegreen;
  }
  #album-img {
    max-width: 350px;
    max-height: 350px;
  }
  #video {
    max-width: 500px;
    max-height: 400px;
  }

  #demo {
    margin: 5px;
    width: 100%;
    height: 550px;
  }
}

@media (max-width: 550px) {
  #nav-bar ul {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    padding: 5px;
  }

  .nav-item {
    list-style: none;
    flex: auto;
    margin: 5px;
    font-size: 18px;
  }

  #album {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    flex-direction: column;
    height: 980px;
  }
  #albumPic {
    max-width: 150px;
    max-height: 150px;
    margin: 15px;
    border: 2px solid palegreen;
  }
  #album-img {
    max-width: 150px;
    max-height: 150px;
  }
  #video {
    max-width: 100%;
    max-height: 200px;
  }
  #demo {
    margin: 5px;
    width: 100%;
    height: 250px;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console