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

              
                <link rel="stylesheet" media="screen" href="https://fontlibrary.org/face/symbola" type="text/css"/>

<!-- Audio Sources -->

<!-- Piano notes can be found in freesound user jobro's piano FF pack

https://freesound.org/people/jobro/packs/2489/?page=1#sound -->

<!-- Very Low Notes -->

<audio id="vlow-cAudio">
    <source src="http://www.freesound.org/data/previews/39/39163_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="vlow-dflatAudio">
    <source src="http://www.freesound.org/data/previews/39/39164_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="vlow-dAudio">
    <source src="http://www.freesound.org/data/previews/39/39165_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="vlow-eflatAudio">
    <source src="http://www.freesound.org/data/previews/39/39166_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="vlow-eAudio">
    <source src="http://www.freesound.org/data/previews/39/39167_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="vlow-fAudio">
    <source src="http://www.freesound.org/data/previews/39/39168_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="vlow-fsharpAudio">
    <source src="http://www.freesound.org/data/previews/39/39169_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="vlow-gAudio">
    <source src="http://www.freesound.org/data/previews/39/39170_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<!-- Low Notes -->

<audio id="low-aflatAudio">
    <source src="http://www.freesound.org/data/previews/39/39171_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="low-aAudio">
    <source src="http://www.freesound.org/data/previews/39/39172_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="low-bflatAudio">
    <source src="http://www.freesound.org/data/previews/39/39173_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="low-bAudio">
    <source src="http://www.freesound.org/data/previews/39/39174_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="low-cAudio">
    <source src="http://www.freesound.org/data/previews/39/39175_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="low-dflatAudio">
    <source src="http://www.freesound.org/data/previews/39/39176_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="low-dAudio">
    <source src="http://www.freesound.org/data/previews/39/39177_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="low-eflatAudio">
    <source src="http://www.freesound.org/data/previews/39/39178_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="low-eAudio">
    <source src="http://www.freesound.org/data/previews/39/39179_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="low-fAudio">
    <source src="http://www.freesound.org/data/previews/39/39180_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="low-fsharpAudio">
    <source src="http://www.freesound.org/data/previews/39/39181_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="low-gAudio">
    <source src="http://www.freesound.org/data/previews/39/39182_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<!-- Middle Notes -->

<audio id="mid-aflatAudio">
    <source src="http://www.freesound.org/data/previews/39/39183_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="mid-aAudio">
    <source src="http://www.freesound.org/data/previews/39/39184_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="mid-bflatAudio">
    <source src="http://www.freesound.org/data/previews/39/39185_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="mid-bAudio">
    <source src="http://www.freesound.org/data/previews/39/39186_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="mid-cAudio">
    <source src="http://www.freesound.org/data/previews/39/39187_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="mid-dflatAudio">
    <source src="http://www.freesound.org/data/previews/39/39188_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="mid-dAudio">
    <source src="http://www.freesound.org/data/previews/39/39189_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="mid-eflatAudio">
    <source src="http://www.freesound.org/data/previews/39/39190_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="mid-eAudio">
    <source src="http://www.freesound.org/data/previews/39/39191_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="mid-fAudio">
    <source src="http://www.freesound.org/data/previews/39/39193_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="mid-fsharpAudio">
    <source src="http://www.freesound.org/data/previews/39/39194_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="mid-gAudio">
    <source src="http://www.freesound.org/data/previews/39/39195_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<!-- High Notes -->

<audio id="high-aflatAudio">
    <source src="http://www.freesound.org/data/previews/39/39196_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="high-aAudio">
    <source src="http://www.freesound.org/data/previews/39/39197_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="high-bflatAudio">
    <source src="http://www.freesound.org/data/previews/39/39198_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="high-bAudio">
    <source src="http://www.freesound.org/data/previews/39/39199_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="high-cAudio">
    <source src="http://www.freesound.org/data/previews/39/39200_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="high-dflatAudio">
    <source src="http://www.freesound.org/data/previews/39/39201_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="high-dAudio">
    <source src="http://www.freesound.org/data/previews/39/39202_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="high-eflatAudio">
    <source src="http://www.freesound.org/data/previews/39/39203_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="high-eAudio">
    <source src="http://www.freesound.org/data/previews/39/39204_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="high-fAudio">
    <source src="http://www.freesound.org/data/previews/39/39205_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="high-fsharpAudio">
    <source src="http://www.freesound.org/data/previews/39/39206_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="high-gAudio">
    <source src="http://www.freesound.org/data/previews/39/39207_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<!-- Very High Notes -->

<audio id="vhigh-aflatAudio">
    <source src="http://www.freesound.org/data/previews/39/39208_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="vhigh-aAudio">
    <source src="http://www.freesound.org/data/previews/39/39209_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="vhigh-bflatAudio">
    <source src="http://www.freesound.org/data/previews/39/39210_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<audio id="vhigh-bAudio">
    <source src="http://www.freesound.org/data/previews/39/39211_35187-lq.mp3" type="audio/mpeg"></source> 
</audio>

<div id="wrapper">

<h1>I am so Happy to Finally be Back Home</h1>
<h2>The Trololo Song</h2>
<h3>Eduard Khil</h3>

<main>
<!--   Measure 1 -->
  <section>
    <p class="clef">&#119074; </p>
    <p class="whole c"><span class="markWhole"><span class="offsetMarkWhole">&#119133;</span></span></p>
    <div class="tie" id="t1"></div>
  </section>
<!--   Measure 2 -->
  <section>
    <p class="half high c">	<span class="markWhole"><span class="offsetMarkWhole">&#119134;</span></span></p>
    <p></p>
    <p></p>
    <div class="tie" id="t2"></div>
    <p class="quarter high g">&#9833;</p>
    <p class="quarter high f">&#9833;</p>
    <div class="tie" id="t3"></div>
  </section>
<!--   Measure 3 -->
  <section>
    <p class="whole g">&#119133;</p>
  </section>
<!--   Measure 4 -->
  <section>
    <p class="half high g">&#119134;</p>
    <p class="quarter lowc">&#9833;</p>
    <p class="quarter high d">&#9833;</p>
  </section>
  <section>
    <p class="whole e">&#119133;</p>
  </section>
  <section>
    <p class="whole g">&#119133;</p>
  </section>
  
  
  
  <section>
    <p class="clef">&#119074; </p>
    <p class="accent" id="a1"> > </p>
    <p class="quarter high e">&#9833;</p>
    <p class="quarter high d">&#9833;</p>
    <div class="halfRest"></div>
  </section>
  <section>
    <div class="halfRest"></div>
    <p class="eighth high g">&#9833;</p>
    <p class="high g sharp">&#9839;</p>
    <p class="eighth high g">&#9833;</p>
    <p class="eighth high a">&#9833;</p>
    <p class="eighth high b">&#9833;</p>
    <div id="bar1"></div>
  </section>
  <section>
    <p class="whole c"><span class="markWhole"><span class="offsetMarkWhole">&#119133;</span></span></p>
    <div class="tie" id="t4"></div>
  </section>
  <section>
    <p class="half high c">	<span class="markWhole"><span class="offsetMarkWhole">&#119134;</span></span></p>
    <p class="quarter high g">.&#9833;</p>
    <p id="weirdEigth"class="high f">&#119136;</p>
  </section>
  <section>
    <p class="whole g">&#119133;</p>
    <div class="tie" id="t5"></div>
  </section>
  <section>
    <p class="half high g">&#119134;</p>
    <p class="quarter lowc">&#9833;</p>
    <p class="quarter high d">&#9833;</p>
    <div class="tie" id="t6"></div>
  </section>
  
  
  
  <section>
    <p class="clef">&#119074; </p>
    <p class="whole e">&#119133;</p>
    <div class="tie" id="t7"></div>
    <div class="tie" id="t8"></div>
  </section>
  <section>
    <p class="whole e">&#119133;</p>
  </section>
  <section>
    <p class="accent" id="a2"> > </p>
    <p class="quarter high d">&#9833;</p>
    <p class="quarter lowc">&#9833;</p>
    <div class="halfRest"></div>
  </section>
  <section>
    <div class="halfRest"></div>
    <p class="eighth flip lowc">&#9833;</p>
    <p class="eighth high e">&#9833;</p>
    <p class="eighth high g">&#9833;</p>
    <p class="eighth high c"><span class="mark"><span class="offsetMark">&#9833;</span></span></p>
    <div id="bar2"></div>
  </section>
  <section>
    <p class="quarter high b">&#9833;</p>
    
    <p class="eighth high b">&#9833;</p>
    <p class="eighth high g">&#9833;</p>
    <div id="bar3a"></div>
    <p class="quarter high a">&#9833;</p>
    
    <p class="eighth high a">&#9833;</p>
    <p class="eighth high e">&#9833;</p>
    <div id="bar3b"></div>
  </section>
  <section>
    <p class="half high g">&#119134;</p>
    <p class="eighth lowg">&#9833;</p>
    <p class="eighth lowb">&#9833;</p>
    <p class="eighth d">&#9833;</p>
    <p class="eighth f">&#9833;</p>
    <div id="bar4"></div>
  </section>
  
  
  
  <section>
    <p class="clef">&#119074; </p>
    <p class="whole e">&#119133;</p>
  </section>
  <section>
    <div class="halfRest"></div>
    <p class="eighth flip lowc">&#9833;</p>
    <p class="eighth high e">&#9833;</p>
    <p class="eighth high g">&#9833;</p>
    <p class="eighth high c"><span class="mark"><span class="offsetMark">&#9833;</span></span></p>
    <div id="bar5"></div>
  </section>
  <section>
    <p class="quarter high b">&#9833;</p>
    
    <p class="eighth high b">&#9833;</p>
    <p class="eighth high g">&#9833;</p>
    <div id="bar6a"></div>
    <p class="quarter high a">&#9833;</p>
    
    <p class="eighth high a">&#9833;</p>
    <p class="eighth high e">&#9833;</p>
    <div id="bar6b"></div>
  </section>
  <section>
    <p class="half high g">&#119134;</p>
    <p class="eighth modified high g">&#9833;</p>
        <p class="flat">&#9837;</p>
    <p class="eighth modified high a">&#9833;</p>
    <p class="natural">&#9838;</p>
    <p class="eighth high a">&#9833;</p>
    <p class="eighth high b">&#9833;</p>
    <div id="bar7"></div>
  </section>
  <section>
  <p class="whole c"><span class="markWhole"><span class="offsetMarkWhole">&#119133;</span></span></p>
    <div class="tie" id="t9"></div>
  </section>
  <section>
    <p class="half high c">	<span class="markWhole"><span class="offsetMarkWhole">&#119134;</span></span></p>
    <div class="halfRest"></div>
  </section>
</main>

<div id="piano">
  <div id="k1" class="whiteKey"></div>
  <div id="k2" class="whiteKey"></div>
  <div id="k3" class="whiteKey"></div>
  <div id="k4" class="whiteKey"></div>
  <div id="k5" class="whiteKey"></div>
  <div id="k6" class="whiteKey"></div>
  <div id="k7" class="whiteKey"></div>
  <div id="k8" class="whiteKey"></div>
  <div id="k9" class="whiteKey"></div>
  <div id="k10" class="whiteKey"></div>
  <div id="k11" class="whiteKey"></div>
  <div id="k12" class="whiteKey"></div>
  <div id="k13" class="whiteKey"></div>
  <div id="k14" class="whiteKey"></div>
  
  <div id="k15" class="whiteKey"></div>
  <div id="k16" class="whiteKey"></div>
  <div id="k17" class="whiteKey"></div>
  <div id="k18" class="whiteKey"></div>
  <div id="k19" class="whiteKey"></div>
  <div id="k20" class="whiteKey"></div>
  <div id="k21" class="whiteKey"></div>
  <div id="k22" class="whiteKey"></div>
  <div id="k23" class="whiteKey"></div>
  <div id="k24" class="whiteKey"></div>
  <div id="k25" class="whiteKey"></div>
  <div id="k26" class="whiteKey"></div>
  <div id="k27" class="whiteKey"></div>
  <div id="k28" class="whiteKey"></div>
  
  <div id="b1" class="blackKey"></div>
  <div id="b2" class="blackKey"></div>
  <div id="b3" class="blackKey"></div>
  <div id="b4" class="blackKey"></div>
  <div id="b5" class="blackKey"></div>
  <div id="b6" class="blackKey"></div>
  <div id="b7" class="blackKey"></div>
  <div id="b8" class="blackKey"></div>
  <div id="b9" class="blackKey"></div>
  <div id="b10" class="blackKey"></div>
  <div id="b11" class="blackKey"></div>
  <div id="b12" class="blackKey"></div>
  <div id="b13" class="blackKey"></div>
  <div id="b14" class="blackKey"></div>
  <div id="b15" class="blackKey"></div>
  <div id="b16" class="blackKey"></div>
  <div id="b17" class="blackKey"></div>
  <div id="b18" class="blackKey"></div>
  <div id="b19" class="blackKey"></div>
  <div id="b20" class="blackKey"></div>
</div>
  
</div>
<!-- EndWrapper -->
              
            
!

CSS

              
                body{
  background: lightblue;
}

#wrapper{
  background: white;
  margin: 0;
  width: 90em;
  padding: 1em;
}

h1, h2{
  text-align: center;
}

h3{
  text-align: right;
}

/* Music Score  */

main{
  margin-left: 2em;;
  max-width: 80%;
  display: grid;
  grid-template-rows: repeat(3, minmax(70px,1fr));
	grid-template-columns: repeat(6, 1fr);
/*   grid-auto-flow: row; */
  margin-top: 5em;
  row-gap: 4em;
}

section{
/*   display: flex; */
  display: grid;
  grid-template-columns: repeat(7, 1fr);
/*   grid-template-rows: 1 1fr; */
  border: 2px solid black;
  background: linear-gradient(to bottom, #fff, #fff 24%, #000 24%, #000 26%, #fff 26%,#fff 49%, #000 49%, #000 51%, #fff 51%, #fff 74%, #000 74%, #000 76%, #fff 76%);
  margin: 0px;
  padding: 0px;
  padding-left: 1em;
  
/*   justify-content: space-around; */
}

section:nth-of-type(6n+1){
  padding-left: 0;
}

p { 
/*   display: inline-block; */
  position: relative;
   font-family: 'SymbolaRegular'; 
   font-weight: normal; 
   font-style: normal; 
  margin:0px;
  margin-top: 0.35em;
  padding:0px;
  padding-left: 0.2em;
  padding-right: 0.2em;
  letter-spacing: 0em;
}

.whole{
  font-size: 5em;
  margin: 0;
  padding:0;
  line-height: 0em;
}

.clef{
  font-size: 5em;
  line-height: 0.75em;
  margin: 0px;
  margin-left: 0.7em;
  padding:0px;
}

.half{
  font-size: 6em;
  line-height: 0;
  margin-top:62px;
  padding: 0;
}

.quarter{
  margin-bottom: -0.5em;
  font-size: 4.25em;
}

.eighth{
  margin-bottom: -0.45em;
  margin-left: -0.3em;
  font-size: 4em;
}

.flip{
  transform: rotate(180deg);
}

/* .highflip{
  transform: rotate(0deg);
} */

.flip.lowc{
  bottom: 0;
}

#weirdEigth{
  font-size: 6em;
  line-height: 0;
  bottom: 11px;
}

.halfRest{
  background: black;
  width: 1.2em;
  height: 0.5em;
  margin: 1.5em 2em 0em 1em;
}

/* Modifiers */

.sharp{
  font-size: 2em;
  font-weight: 1000;
  top: 0em;
  transform: skew(-10deg);
}

.flat{
  font-size: 2em;
  font-weight: bold;
  bottom: 0.1em;
  left: 0.7em;
  margin: 0em;
  margin-right: -1em;
  line-height: 0px;
  letter-spacing: 0;
}

.natural{
  font-size: 2em;
  font-weight: bold;
  bottom: 0.3em;
  left: 0.2em;
  margin: 0em;
  margin-right: -1em;
  line-height: 0px;
  letter-spacing: 0;
}

.modified{
  margin-left:0;
  margin-right:-0.4em;
}

.sharp.g{
  top: -1.3em;
  margin-left: -0.5em;
}

.accent{
  position: absolute;
  font-size: 1.5em;
  font-weight: semi-bold;
}

#a1{
  top: 14.8em;
  left: 5.5em;
}

#a2{
  top: 21.3em;
  left: 23em;
}

/* Eighth note bars */

#bar1{
  position: absolute;
  background: black;
  width: 6.8em;
  height: 0.5em;
  top: 27.6em;
  left: 23.45em;
  transform: skew(0deg, -10deg);
}

#bar2{
  position: absolute;
  background: black;
  width: 6.15em;
  height: 0.5em;
  top: 36.8em;
  left: 53.5em;
  transform: skew(0deg, -30deg);
}

#bar3a{
  position: absolute;
  background: black;
  width: 2.1em;
  height: 0.5em;
  top: 35.7em;
  left: 66.2em;
  transform: skew(0deg, 30deg);
}

#bar3b{
  position: absolute;
  background: black;
  width: 2.1em;
  height: 0.5em;
  top: 36.5em;
  left: 73.55em;
  transform: skew(0deg, 30deg);
}

#bar4{
  position: absolute;
  background: black;
  width: 6.15em;
  height: 0.5em;
  top: 31.6em;
  left: 81.4em;
  transform: skew(0deg, -28deg);
}

#bar5{
  position: absolute;
  background: black;
  width: 6.15em;
  height: 0.5em;
  top: 44.9em;
  left: 23.45em;
  transform: skew(0deg, -30deg);
}

#bar6a{
  position: absolute;
  background: black;
  width: 2.1em;
  height: 0.5em;
  top: 43.9em;
  left: 36.7em;
  transform: skew(0deg, 30deg);
}

#bar6b{
  position: absolute;
  background: black;
  width: 2.05em;
  height: 0.5em;
  top: 44.6em;
  left: 44.1em;
  transform: skew(0deg, 38deg);
}

#bar7{
  position: absolute;
  background: black;
  width: 7.4em;
  height: 0.5em;
  top: 44em;
  left: 52.25em;
  transform: skew(0deg, -10deg);
}

/* Lines to go over all of the notes */

.tie {
    position: absolute;
    width: 250px;
    height: 40px;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border: 5px solid black;
    border-bottom: 0;
    border-width: 5px 0px;
  
/*     top: 45px;
    left: 8.5em; */
}

#t1{
    top: 12.5em;
    left: 8.5em;
  width: 12em;
}

#t2{
    top: 14em;
    left: 34.5em;
  width: 16em;
}

#t3{
    top: 13em;
    left: 53em;
  width: 28em;
}


#t4{
    top: 21em;
    left: 34.5em;
  width: 16em;
}


#t5{
    top: 22em;
    left: 63.5em;
  width: 16em;
}


#t6{
    top: 22em;
    left: 82em;
  width: 6.5em;
}


#t7{
    top: 31.5em;
    left: 4.5em;
  width: 3em;
  height: 1.5em;
}


#t8{
    top: 30.5em;
    left: 4.5em;
  width: 16em;
}

#t9{
    top: 37.5em;
    left: 64em;
  width: 16em;
}


/* Lines for the notes */

.mark {
        border-bottom: 2px solid #000;
        top: -0.18em; /* Tweak this and the other top in equal, but opposite values */
        position: relative;
    }

.offsetMark {
        position: relative;
        top: 0.2em; /* Tweak this and the other top in equal, but opposite values */
    }

/* Whole notes are still problematic */

.markWhole {
        border-bottom: 2px solid #000;
        top: -0.12em; /* Tweak this and the other top in equal, but opposite values */
        position: relative;
    }

.offsetMarkWhole {
        position: relative;
        top: 0.11em; /* Tweak this and the other top in equal, but opposite values */
    }

/* Every Note as a class */

.lowe{
/*   line-height: -3em; */
/*   text-decoration: line-through;  */
/*   This has become the default */
}

.lowf{
  bottom: 0.1em;
}

.lowg{
  bottom: 0.2em;
}

.lowa{
  bottom: 0.35em;
}

.lowb{
  bottom: 0.45em;
}

.lowc{
  bottom: 0.6em;
}

/* high notes get flipped the other way  */

.high{
  transform: rotate(180deg);
}

.d{
  bottom: 0.13em;
}

.e{
  bottom: 0.25em;
}

.f{
  bottom: 0.4em;
}

.g{
  bottom: 0.5em;
}

.a{
  bottom: 0.65em;
}

.b{
  bottom: 0.75em;
}

.c{
  bottom: 0.85em;
}

/* Whole Note Classes */

.whole.lowe{
  margin-top: 0.62em;
}
.whole.lowf{
  margin-top: 0.64em;
}
.whole.lowg{
  margin-top: 0.65em;
}
.whole.lowa{
  margin-top: 0.69em;
}
.whole.lowb{
  margin-top: 0.68em;
}
.whole.lowc{
  margin-top: 0.72em;
}

.whole.d{
  margin-top: 0.16em;
}

.whole.e{
  margin-top: 0.16em;
}

.whole.f{
  margin-top: 0.2em;
}

.whole.g{
  margin-top: 0.2em;
}

.whole.a{
  margin-top: 0.24em;
}

.whole.b{
  margin-top: 0.25em;
}

.whole.c{
  margin-top: 0.26em;
}

/* Half Note Classes */

.half.lowe{
  bottom: 0.15em;
}

.half.lowf{
  bottom: 0.25em;
}

.half.lowg{
  bottom: 0.33em;
}

.half.lowa{
  bottom: 0.43em;
}

.half.lowb{
  bottom: 0.52em;
}

.half.lowc{
  bottom: 0.6em;
}

.half.high.d{
  top:0.05em;
}

.half.high.e{
  bottom: 0.03em;
}

.half.high.f{
  bottom: 0.12em;
}

.half.high.g{
  bottom: 0.21em;
}

.half.high.a{
  bottom: 0.3em;
}

.half.high.b{
  bottom: 0.4em;
}

.half.high.c{
  bottom: 0.47em;
}

.eighth.lowg{
  top: -0.15em;
}

.eighth.d{
  bottom: 0.67em;
}

.eighth.f{
  bottom: 0.94em;
}

.eighth.high.c{
  margin-top: 0.45em;
}

/* Piano */

#piano{
  background: gray;
  min-height: 200px;
  margin-top: 7em;
  display: grid;
/*   grid-auto-flow: unset; */
  grid-template-columns: repeat(112, 1fr);
	grid-template-rows: 6fr 4fr;
}

.whiteKey{
  background: white;
  border: 1px solid black;
  grid-row: 1 / 3;
  box-shadow: 0px 5px 4px black;
  text-align: center;
  padding-top: 11em;
/*   grid-column: 1 / span 4; */
}

.whiteKey:active{
  box-shadow: 0px 3px 2px gray;
}

#k1{
  grid-column: 1 / span 4;
}

#k2{
  grid-column: 5 / span 4;
}

#k3{
  grid-column: 9 / span 4;
}
#k4{
  grid-column: 13 / span 4;
}
#k5{
  grid-column: 17 / span 4;
}
#k6{
  grid-column: 21 / span 4;
}
#k7{
  grid-column: 25 / span 4;
}
#k8{
  grid-column: 29 / span 4;
}
#k9{
  grid-column: 33 / span 4;
}
#k10{
  grid-column: 37 / span 4;
}
#k11{
  grid-column: 41 / span 4;
}
#k12{
  grid-column: 45 / span 4;
}
#k13{
  grid-column: 49 / span 4;
}
#k14{
  grid-column: 53 / span 4;
}
#k15{
  grid-column: 57 / span 4;
}
#k16{
  grid-column: 61 / span 4;
}
#k17{
  grid-column: 65 / span 4;
}
#k18{
  grid-column: 69 / span 4;
}
#k19{
  grid-column: 73 / span 4;
}
#k20{
  grid-column: 77 / span 4;
}
#k21{
  grid-column: 81 / span 4;
}
#k22{
  grid-column: 85 / span 4;
}
#k23{
  grid-column: 89 / span 4;
}
#k24{
  grid-column: 93 / span 4;
}
#k25{
  grid-column: 97 / span 4;
}
#k26{
  grid-column: 101 / span 4;
}
#k27{
  grid-column: 105 / span 4;
}
#k28{
  grid-column: 109 / span 4;
}

.blackKey{
  background: black;
  grid-row: 1 / span 1;
  z-index: 2;
  box-shadow: 0px 3px 3px gray;
  color: white;
  text-align: center;
  padding-top: 6em;
}

.blackKey:active{
  box-shadow: 0px 1px 2px gray;
}

#b1{
  grid-column: 4 / span 2;
}
#b2{
  grid-column: 8 / span 2;
}
#b3{
  grid-column: 16 / span 2;
}
#b4{
  grid-column: 20 / span 2;
}
#b5{
  grid-column: 24 / span 2;
}
#b6{
  grid-column: 32 / span 2;
}
#b7{
  grid-column: 36 / span 2;
}
#b8{
  grid-column: 44 / span 2;
}
#b9{
  grid-column: 48 / span 2;
}
#b10{
  grid-column: 52 / span 2;
}
#b11{
  grid-column: 60 / span 2;
}
#b12{
  grid-column: 64 / span 2;
}
#b13{
  grid-column: 72 / span 2;
}
#b14{
  grid-column: 76 / span 2;
}
#b15{
  grid-column: 80 / span 2;
}
#b16{
  grid-column: 88 / span 2;
}
#b17{
  grid-column: 92 / span 2;
}
#b18{
  grid-column: 100 / span 2;
}
#b19{
  grid-column: 104 / span 2;
}
#b20{
  grid-column: 108 / span 2;
}
              
            
!

JS

              
                $(document).ready(function() {
  });

// Very Low Notes

var vlowCNote = document.getElementById('vlow-cAudio');
var vlowDFlatNote = document.getElementById('vlow-dflatAudio');
var vlowDNote = document.getElementById('vlow-dAudio');
var vlowEFlatNote = document.getElementById('vlow-eflatAudio');
var vlowENote = document.getElementById('vlow-eAudio');
var vlowFNote = document.getElementById('vlow-fAudio');
var vlowFSharpNote = document.getElementById('vlow-fsharpAudio');
var vlowGNote = document.getElementById('vlow-gAudio');

// Low Notes

var lowAFlatNote = document.getElementById('low-aflatAudio');
var lowANote = document.getElementById('low-aAudio');
var lowBFlatNote = document.getElementById('low-bflatAudio');
var lowBNote = document.getElementById('low-bAudio');
var lowCNote = document.getElementById('low-cAudio');
var lowDFlatNote = document.getElementById('low-dflatAudio');
var lowDNote = document.getElementById('low-dAudio');
var lowEFlatNote = document.getElementById('low-eflatAudio');
var lowENote = document.getElementById('low-eAudio');
var lowFNote = document.getElementById('low-fAudio');
var lowFSharpNote = document.getElementById('low-fsharpAudio');
var lowGNote = document.getElementById('low-gAudio');

// Middle Notes

var midAFlatNote = document.getElementById('mid-aflatAudio');
var midANote = document.getElementById('mid-aAudio');
var midBFlatNote = document.getElementById('mid-bflatAudio');
var midBNote = document.getElementById('mid-bAudio');
var midCNote = document.getElementById('mid-cAudio');
var midDFlatNote = document.getElementById('mid-dflatAudio');
var midDNote = document.getElementById('mid-dAudio');
var midEFlatNote = document.getElementById('mid-eflatAudio');
var midENote = document.getElementById('mid-eAudio');
var midFNote = document.getElementById('mid-fAudio');
var midFSharpNote = document.getElementById('mid-fsharpAudio');
var midGNote = document.getElementById('mid-gAudio');

// High Notes

var highAFlatNote = document.getElementById('high-aflatAudio');
var highANote = document.getElementById('high-aAudio');
var highBFlatNote = document.getElementById('high-bflatAudio');
var highBNote = document.getElementById('high-bAudio');
var highCNote = document.getElementById('high-cAudio');
var highDFlatNote = document.getElementById('high-dflatAudio');
var highDNote = document.getElementById('high-dAudio');
var highEFlatNote = document.getElementById('high-eflatAudio');
var highENote = document.getElementById('high-eAudio');
var highFNote = document.getElementById('high-fAudio');
var highFSharpNote = document.getElementById('high-fsharpAudio');
var highGNote = document.getElementById('high-gAudio');

// Very High Notes

var vhighAFlatNote = document.getElementById('vhigh-aflatAudio');
var vhighANote = document.getElementById('vhigh-aAudio');
var vhighBFlatNote = document.getElementById('vhigh-bflatAudio');
var vhighBNote = document.getElementById('vhigh-bAudio');

// Mousepressed funcitons
// Very Low Notes

$('#k1').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    vlowCNote.volume = 1;
    vlowCNote.currentTime = 0;
    // This plays the audio file.
    vlowCNote.play();
  });

$('#b1').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    vlowDFlatNote.volume = 1;
    vlowDFlatNote.currentTime = 0;
    // This plays the audio file.
    vlowDFlatNote.play();
  });

$('#k2').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    vlowDNote.volume = 1;
    vlowDNote.currentTime = 0;
    // This plays the audio file.
    vlowDNote.play();
  });

$('#b2').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    vlowEFlatNote.volume = 1;
    vlowEFlatNote.currentTime = 0;
    // This plays the audio file.
    vlowEFlatNote.play();
  });

$('#k3').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    vlowENote.volume = 1;
    vlowENote.currentTime = 0;
    // This plays the audio file.
    vlowENote.play();
  });

$('#k4').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    vlowFNote.volume = 1;
    vlowFNote.currentTime = 0;
    // This plays the audio file.
    vlowFNote.play();
  });

$('#b3').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    vlowFSharpNote.volume = 1;
    vlowFSharpNote.currentTime = 0;
    // This plays the audio file.
    vlowFSharpNote.play();
  });

$('#k5').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    vlowGNote.volume = 1;
    vlowGNote.currentTime = 0;
    // This plays the audio file.
    vlowGNote.play();
  });

// Low Notes

$('#b4').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    lowAFlatNote.volume = 1;
    lowAFlatNote.currentTime = 0;
    // This plays the audio file.
    lowAFlatNote.play();
  });

$('#k6').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    lowANote.volume = 1;
    lowANote.currentTime = 0;
    // This plays the audio file.
    lowANote.play();
  });

$('#b5').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    lowBFlatNote.volume = 1;
    lowBFlatNote.currentTime = 0;
    // This plays the audio file.
    lowBFlatNote.play();
  });

$('#k7').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    lowBNote.volume = 1;
    lowBNote.currentTime = 0;
    // This plays the audio file.
    lowBNote.play();
  });

  $('#k8').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    lowCNote.volume = 1;
    lowCNote.currentTime = 0;
    // This plays the audio file.
    lowCNote.play();
  });

$('#b6').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    lowDFlatNote.volume = 1;
    lowDFlatNote.currentTime = 0;
    // This plays the audio file.
    lowDFlatNote.play();
  });

$('#k9').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    lowDNote.volume = 1;
    lowDNote.currentTime = 0;
    // This plays the audio file.
    lowDNote.play();
  });

$('#b7').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    lowEFlatNote.volume = 1;
    lowEFlatNote.currentTime = 0;
    // This plays the audio file.
    lowEFlatNote.play();
  });

$('#k10').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    lowENote.volume = 1;
    lowENote.currentTime = 0;
    // This plays the audio file.
    lowENote.play();
  });

$('#k11').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    lowFNote.volume = 1;
    lowFNote.currentTime = 0;
    // This plays the audio file.
    lowFNote.play();
  });

$('#b8').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    lowFSharpNote.volume = 1;
    lowFSharpNote.currentTime = 0;
    // This plays the audio file.
    lowFSharpNote.play();
  });

$('#k12').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    lowGNote.volume = 1;
    lowGNote.currentTime = 0;
    // This plays the audio file.
    lowGNote.play();
  });

// Middle Notes
  // This turns our <div id= "mid-d"> into a button that plays our audio file when the box is pressed. 
$('#b9').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    midAFlatNote.volume = 1;
    midAFlatNote.currentTime = 0;
    // This plays the audio file.
    midAFlatNote.play();
  });

$('#k13').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    midANote.volume = 1;
    midANote.currentTime = 0;
    // This plays the audio file.
    midANote.play();
  });

$('#b10').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    midBFlatNote.volume = 1;
    midBFlatNote.currentTime = 0;
    // This plays the audio file.
    midBFlatNote.play();
  });

$('#k14').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    midBNote.volume = 1;
    midBNote.currentTime = 0;
    // This plays the audio file.
    midBNote.play();
  });

  $('#k15').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    midCNote.volume = 1;
    midCNote.currentTime = 0;
    // This plays the audio file.
    midCNote.play();
  });

$('#b11').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    midDFlatNote.volume = 1;
    midDFlatNote.currentTime = 0;
    // This plays the audio file.
    midDFlatNote.play();
  });

$('#k16').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    midDNote.volume = 1;
    midDNote.currentTime = 0;
    // This plays the audio file.
    midDNote.play();
  });

$('#b12').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    midEFlatNote.volume = 1;
    midEFlatNote.currentTime = 0;
    // This plays the audio file.
    midEFlatNote.play();
  });

$('#k17').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    midENote.volume = 1;
    midENote.currentTime = 0;
    // This plays the audio file.
    midENote.play();
  });

$('#k18').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    midFNote.volume = 1;
    midFNote.currentTime = 0;
    // This plays the audio file.
    midFNote.play();
  });

$('#b13').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    midFSharpNote.volume = 1;
    midFSharpNote.currentTime = 0;
    // This plays the audio file.
    midFSharpNote.play();
  });

$('#k19').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    midGNote.volume = 1;
    midGNote.currentTime = 0;
    // This plays the audio file.
    midGNote.play();
  });

// High Notes

$('#b14').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    highAFlatNote.volume = 1;
    highAFlatNote.currentTime = 0;
    // This plays the audio file.
    highAFlatNote.play();
  });

$('#k20').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    highANote.volume = 1;
    highANote.currentTime = 0;
    // This plays the audio file.
    highANote.play();
  });

$('#b15').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    highBFlatNote.volume = 1;
    highBFlatNote.currentTime = 0;
    // This plays the audio file.
    highBFlatNote.play();
  });

$('#k21').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    highBNote.volume = 1;
    highBNote.currentTime = 0;
    // This plays the audio file.
    highBNote.play();
  });

  $('#k22').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    highCNote.volume = 1;
    highCNote.currentTime = 0;
    // This plays the audio file.
    highCNote.play();
  });

$('#b16').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    highDFlatNote.volume = 1;
    highDFlatNote.currentTime = 0;
    // This plays the audio file.
    highDFlatNote.play();
  });

$('#k23').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    highDNote.volume = 1;
    highDNote.currentTime = 0;
    // This plays the audio file.
    highDNote.play();
  });

$('#b17').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    highEFlatNote.volume = 1;
    highEFlatNote.currentTime = 0;
    // This plays the audio file.
    highEFlatNote.play();
  });

$('#k24').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    highENote.volume = 1;
    highENote.currentTime = 0;
    // This plays the audio file.
    highENote.play();
  });

$('#k25').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    highFNote.volume = 1;
    highFNote.currentTime = 0;
    // This plays the audio file.
    highFNote.play();
  });

$('#b18').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    highFSharpNote.volume = 1;
    highFSharpNote.currentTime = 0;
    // This plays the audio file.
    highFSharpNote.play();
  });

$('#k26').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    highGNote.volume = 1;
    highGNote.currentTime = 0;
    // This plays the audio file.
    highGNote.play();
  });

// Very High Notes

$('#b19').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    vhighAFlatNote.volume = 1;
    vhighAFlatNote.currentTime = 0;
    // This plays the audio file.
    vhighAFlatNote.play();
  });

$('#k27').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    vhighANote.volume = 1;
    vhighANote.currentTime = 0;
    // This plays the audio file.
    vhighANote.play();
  });

$('#b20').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    vhighBFlatNote.volume = 1;
    vhighBFlatNote.currentTime = 0;
    // This plays the audio file.
    vhighBFlatNote.play();
  });

$('#k28').mousedown(function() {
    // This is a property that scrubs the audio file back to its start.
    vhighBNote.volume = 1;
    vhighBNote.currentTime = 0;
    // This plays the audio file.
    vhighBNote.play();
  });
              
            
!
999px

Console