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

              
                <body>

 <!-- ________________________________________
 NAV BAR
________________________________________ -->
 <header id="header">
  <nav id=nav-bar>
   <a href="#sectionWithH1" id="logo">
    <img src="https://i.postimg.cc/50tN9FdD/original-trombones2.png" alt="" id="header-img">
   </a>
   <ul>
    <li>
     <a href="#moveToFeatures" class="nav-link">Features</a>
    </li>
    <li>
     <a href="#moveToVideo" class="nav-link">How it works</a>
    </li>
    <li>
     <a href="#moveToCartToSell" class="nav-link">Pricing</a>
    </li>
   </ul>
  </nav>
 </header>

 <!-- ________________________________________
 FORM TO SUBMIT EMAIL
________________________________________ -->

 <form id="form" action="https://www.freecodecamp.com/email-submit" name="surveyToGiveEmails">
  <h1>
   Handcrafted, home-made masterpieces
  </h1>
  <label for="submit" class="screenReaderText">
   If you wish contact with the Original Trombones, please enter your email in the next input
  </label>
  <input type="email" placeholder="Enter your email here to contact with the Original Trombones" required
   title="Enter your email here to contact with the Original Trombones" id="email" name="email">
  <input type="submit" id="submit">
 </form>
 <!-- ________________________________________
 MAIN SECTION
________________________________________ -->
 <div id="moveToFeatures" class="toMoveOnThePage"></div>

 <main>
  <img src="https://img.icons8.com/android/24/000000/fire-element.png" id="iconFire" alt="">
  <h2 id="premiumMaterials" class="titleFeature">Premium Materials</h2>
  <p id="textOfPremiumMaterials" class="textOfFeature">Our trombones use the shiniest brass which is sourced locally.
   This will increase the longevity of your purchase.</p>

  <img src="https://img.icons8.com/metro/26/000000/truck.png" id="iconTruck" class="iconFeatures" alt="">
  <h2 id="premiumEastShipping" class="titleFeature">Premium Fast Shipping</h2>
  <p id="textOfPremiumEastShipping" class="textOfFeature">We make sure you recieve your trombone as soon as we have
   finished making it. We also provide free returns if you are not satisfied.</p>

  <img src="https://img.icons8.com/android/24/000000/medium-battery.png" id="iconBattery" class="iconFeatures" alt="">
  <h2 id="qualityAssurance" class="titleFeature">Quality Assurance</h2>
  <p id="textOfQualityAssurance" class="textOfFeature">For every purchase you make, we will ensure there are no damages
   or faults and we will check and test the pitch of your instrument.</p>
 </main>

 <!-- ________________________________________
 VIDEO FROM YOUTUBE
________________________________________ -->
 <div id="moveToVideo" class="toMoveOnThePage"></div>
 <iframe id="video" src="https://www.youtube.com/embed/_u4zt3MUDr8?autoplay=1&mute=1&mute=1"></iframe>

 <!-- ________________________________________
 PRICES
________________________________________ -->

 <div id="moveToCartToSell" class="toMoveOnThePage"></div>

 <div id="containerOfAllTheCartToSell">

  <section id="sectionOfTenorTrombone">
   <h2 class="titleOfCartToSell" id="titlteTenorTrombone">
    Tenor Trombone
   </h2>
   <p class="priceOfCartToSell" id="priceTenorTrombone">
    $600
   </p>
   <p class="someTextOfCartToSell" id="textTenorTrombone">
    Lorem ipsum. Lorem ipsum. Lorem ipsum dolor. Lorem ipsum.
   </p>
   <button class="buttonOfCartToSell" id="buttonTenorTrombone">
    Select
   </button>
  </section>

  <section id="sectionOfBassTrombone">
   <h2 class="titleOfCartToSell" id="tittleBassTrombone">
    Bass Trombone
   </h2>
   <p class="priceOfCartToSell" id="priceBassTrombone">
    $900
   </p>
   <p class="someTextOfCartToSell" id="textBassTrombone">
    Lorem ipsum. Lorem ipsum. Lorem ipsum dolor. Lorem ipsum.
   </p>
   <button class="buttonOfCartToSell" id="buttonBassTrombone">
    Select
   </button>
  </section>



  <section id="sectionOfValveTrombone">
   <h2 class="titleOfCartToSell" id="titleValveTrombone">
    Valve Trombone
   </h2>
   <p class="priceOfCartToSell" id="priceValveTrombone">
    $1200
   </p>
   <p class="someTextOfCartToSell" id="textValveTrombone">
    Plays similar to a Trumpet. Geat for Jazz Bands. Lorem ipsum dolor. Lorem ipsum.
   </p>
   <button class="buttonOfCartToSell" id="buttonValveTrombone">
    Select
   </button>
  </section>

 </div>

 <!-- ________________________________________
 FOOTER
________________________________________ -->

 <footer>
  <a id="privacy" class="firstColumnFooter" href="#sectionWithH1">Privacy</a>
  <a id="terms" class="firstColumnFooter" href="#sectionWithH1">Terms</a>
  <a id="contact" class="firstColumnFooter" href="#sectionWithH1">Contact</a>
  <p id="copyright" class="secondColumnFooter">Created by JuanPasténCastillo</p>
 </footer>

 <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</body>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Castoro&display=swap');
:root {
 font-size: 100%;
 --borderRed: 2px red solid;
 --borderBlack: 2px black solid;
 --borderGreen: 2px green solid;
 --borderBlue: 2px blue solid;
 --borderYellow: 2px yellow solid;
}

* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
 font-family: 'Castoro', serif;
 text-decoration: none;
 color: black;
 /*See how the WAI tool react to this*/
}

body {
 color: #162B32;
 background-color: whitesmoke;
}

/* ________________________________________
NAV BAR
________________________________________ */

nav {
 /* border:var(--borderBlack); */
 display: flex;
 flex-flow: row nowrap;
 width: 100%;
 position: fixed;
 top: 0;
 background-color: rgba(84, 164, 191, 0.75);
}

nav #logo {
 width: 100%;
 /* border:var(--borderRed); */
 display: flex;
}

nav #logo img {
 /* border:var(--borderGreen); */
 max-width: 100%;
 margin: 0;
 padding: 0;
 /* align-items: stretch; */
 /* display:block; */
}

nav ul {
 /* border: var(--borderRed); */
 list-style-type: none;
 width: 100%;
 display: flex;
 justify-content: center;
 align-items: center;
}

nav ul li {
 /* border: var(--borderBlue); */
 display: flex;
 width: 100%;
}

nav ul li a {
 /* border: var(--borderGreen); */
 text-decoration: none;
 color: black;
 font-weight: 900;
 padding: 2vw;
 width: 100%;
 text-align: center;
 border-radius: 6px;
}

nav ul li a:hover {
 background: rgba(24, 79, 97, 0.85);
 color: white;
}

nav ul li a:active {
 box-shadow: 1px 1px 10px 1px #162B32;
}

/* ________________________________________
FORM TO SUBMIT EMAIL
________________________________________ */

.toMoveOnThePage {
 border: 0;
 clip: rect(1px, 1px, 1px, 1px);
 clip-path: inset(50%);
 height: 1px;
 margin: -1px;
 width: 1px;
 overflow: hidden;
 position: absolute !important;
 word-wrap: normal !important;
}

form {
 /* border:var(--borderBlack); */
 display: flex;
 flex-flow: column wrap;
 justify-content: center;
 align-content: center;
 margin: 10.8vw auto 0 auto;
}

form h1 {
 /* border:var(--borderBlue); */
 /* width:100%; */
 text-align: center;
 margin: 0 0 1.2vw 0;
 /* text-align: center; */
 /* margin:0 0 0.8vw 0; */
}

.screenReaderText {
 border: 0;
 clip: rect(1px, 1px, 1px, 1px);
 clip-path: inset(50%);
 height: 1px;
 margin: -1px;
 width: 1px;
 overflow: hidden;
 position: absolute !important;
 word-wrap: normal !important;
}

form input {
 /* border:var(--borderGreen); */
 width: 400px;
 margin: 1.2vw auto 1.2vw;
 border-radius: 2px;
 border: none;
 /* background-color: #162B32; */
 color: black;
 padding: 0.3vw;
 /* box-shadow: inset 1px 1px 10px 1px white; */
 box-shadow: 1px 1px 10px 1px black;
 outline: none;
}

form input::placeholder {
 text-align: center;
 /* color:black; */
}

form #submit {
 /* border:var(--borderRed); */
 margin: 0.6vw auto;
 width: 200px;
 border-radius: 6px;
 border: none;
 text-transform: uppercase;
 padding: 0.5vw;
 font-weight: 900;
 background-color: #FF4838;
 box-shadow: 1px 1px 10px 1px black;
 outline: none;
}

/* ________________________________________
MAIN SECTION
________________________________________ */

main {
 /* border:var(--borderYellow); */
 /* height:80%; */
 width: 650px;
 margin: 4vw auto;
 display: grid;
 grid-template: [row1-start] ". PM" auto [row1-end] [row2-start] "IF TOPM" auto [row2-end] [row3-start] ". PES" auto [row3-end] [row4-start] "IT TOPES" auto [row4-end] [row5-start] ". QA" auto [row5-end] [row6-start] "IB TOQA" auto [row6-end] / [column1-start] 1fr [column2-start] auto [column3-start];
}

.iconFeatures {
 margin-right: 1.5vw;
}

#iconFire {
 grid-area: IF;
}

#premiumMaterials {
 grid-area: PM;
 /* border:var(--borderGreen); */
}

#textOfPremiumMaterials {
 grid-area: TOPM;
 /* border:var(--borderRed); */
}

#iconTruck {
 grid-area: IT;
 /* border:var(--borderBlack); */
}

#premiumEastShipping {
 grid-area: PES;
 margin-top: 2vw;
 /* border:var(--borderGreen); */
}

#textOfPremiumEastShipping {
 grid-area: TOPES;
 /* border:var(--borderRed); */
}

#iconBattery {
 grid-area: IB;
 /* border:var(--borderBlack); */
}

#qualityAssurance {
 grid-area: QA;
 margin-top: 2vw;
 /* border:var(--borderGreen); */
}

#textOfQualityAssurance {
 grid-area: TOQA;
 /* border:var(--borderRed); */
}

/* ________________________________________
VIDEO FROM YOUTUBE
________________________________________ */

iframe {
 display: flex;
 width: 500px;
 height: 300px;
 margin: 6vw auto;
 border-radius: 6px;
 box-shadow: 1px 1px 7px 2px black;
 border: none;
}

/* ________________________________________
PRICES
________________________________________ */

#containerOfAllTheCartToSell {
 /* border:var(--borderGreen); */
 width: 100%;
 /* height: 100%; */
 margin: 6vw auto 1.2vw auto;
 display: flex;
 flex-flow: row wrap;
 justify-content: center;
}

#sectionOfTenorTrombone, #sectionOfBassTrombone, #sectionOfValveTrombone {
 border: 3px solid #162B32;
 border-top-left-radius: 40px;
 border-top-right-radius: 40px;
 border-bottom-left-radius: 6px;
 border-bottom-right-radius: 6px;
 box-shadow: 1px 1px 10px 0px #162B32;
}

#sectionOfTenorTrombone {
 /* border:2px solid #162B32;
border-top-left-radius: 40px;
border-top-right-radius: 40px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px; */
 width: 250px;
 height: 300px;
 margin: 0 2vw 0 0;
 display: grid;
 grid-template: [row1-start] "TitleTT" auto [row1-end] [row2-start] "PriceTT " auto [row2-end] [row3-start] "TextTT " auto [row3-end] [row4-start] "ButtonTT " auto [row4-end] / [column1-start] auto [column2-start];
 /* width:33%; */
 /* height: 30%; */
 /* margin:auto auto auto 1.2vw; */
 justify-items: center;
 align-items: center;
 /* border-radius: 6px; */
}

/* .titleOfCartToSell, priceOfCartToSell, someTextOfCartToSell, buttonOfCartToSell {
text-align: center;
height:100%;
} */

.titleOfCartToSell {
 background-color: #162B32;
 border-top-left-radius: 30px;
 border-top-right-radius: 30px;
 /* border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px; */
 display: flex;
 height: 100%;
 width: 100%;
 justify-content: center;
 align-items: center;
 vertical-align: middle;
 color: white;
}

.priceOfCartToSell {
 font-weight: 900;
 font-size: 1.5rem;
}

.someTextOfCartToSell {
 text-align: center;
 height: 80px;
}

.buttonOfCartToSell {
 border: none;
 padding: 13px 35px;
 border-radius: 6px;
 background-color: #FF4838;
 font-weight: 900;
}

.buttonOfCartToSell:hover {
 background-color: #162B32;
 color: white;
 cursor: pointer;
}

#titlteTenorTrombone {
 grid-area: TitleTT;
 /* background-color:gray; */
 /* width:100%; */
 /* text-align: center; */
 /* vertical-align: bottom; */
}

#priceTenorTrombone {
 grid-area: PriceTT;
}

#textTenorTrombone {
 grid-area: TextTT;
}

#buttonTenorTrombone {
 grid-area: ButtonTT;
}

#sectionOfBassTrombone {
 /* border:var(--borderRed); */
 width: 250px;
 height: 300px;
 margin: 0 2vw 0 0;
 display: grid;
 grid-template: [row1-start] "TitleBT " auto [row1-end] [row2-start] "PriceBT" auto [row2-end] [row3-start] "TextBT" auto [row3-end] [row4-start] "ButtonBT" auto [row4-end] / [column1-start] 1fr [column2-start];
 justify-items: center;
 align-items: center;
}

#tittleBassTrombone {
 grid-area: TitleBT;
}

#priceBassTrombone {
 grid-area: PriceBT;
}

#textBassTrombone {
 grid-area: TextBT;
}

#buttonBassTrombone {
 grid-area: ButtonBT;
}

#sectionOfValveTrombone {
 /* border:var(--borderBlack); */
 width: 250px;
 height: 300px;
 /* margin:0 2vw 0 0; */
 display: grid;
 grid-template: [row1-start] "TitleVT" auto [row1-end] [row2-start] "PriceVT" auto [row2-end] [row3-start] "TextVT" auto [row3-end] [row4-start] "ButtonVT" auto [row4-end] / [column1-start] 1fr [column2-start];
 justify-items: center;
 align-items: center;
}

#titleValveTrombone {
 grid-area: TitleVT;
}

#priceValveTrombone {
 grid-area: PriceVT;
}

#textValveTrombone {
 grid-area: TextVT;
}

#buttonValveTrombone {
 grid-area: ButtonVT;
}

/* ________________________________________
FOOTER
________________________________________ */

footer {
 /* border:var(--borderBlack); */
 background-color: rgba(84, 164, 191, 0.85);
 border-radius: 6px;
 color: black;
 margin: 2vw auto 0.2vw auto;
 /* padding:2vw auto; */
 width: 800px;
 display: grid;
 grid-template: [row1-start] "PRIVACY TERMS CONTACT" auto [row1-end] [row2-start] "COPYRIGHT COPYRIGHT COPYRIGHT" auto [row2-end] /150px 150px 150px;
 justify-items: end;
 justify-content: end;
 box-shadow: inset 1px 1px 10px 0px black;
}

footer a, footer p {
 font-family: monospace;
 font-size: 1rem;
 color: black;
 border-radius: 6px;
}

footer a:hover, footer p:hover {
 color: white;
 background-color: rgba(24, 79, 97, 0.85);
}

footer a:active, footer p:active {
 box-shadow: 1px 1px 10px 1px #162B32;
}

.firstColumnFooter {
 padding: 0.9vw 0.8vw;
}

.secondColumnFooter {
 padding: 0 0.2vw 0.2vw 0;
}

#privacy {
 grid-area: PRIVACY;
 /* border:var(--borderRed); */
}

#terms {
 grid-area: TERMS;
}

#contact {
 grid-area: CONTACT;
}

#copyright {
 grid-area: COPYRIGHT;
}

#copyright:hover {
 text-transform: uppercase;
}

/* ________________________________________
MEDIA QUERIES
___________________________________________*/

@media only screen and (max-width: 820px) {
 /* ________________________________________
NAV-BAR
________________________________________ */
 nav {
  /* border:var(--borderBlack); */
  flex-flow: column wrap;
 }
 nav #logo {
  /* border: var(--borderBlue); */
  justify-content: center;
 }
 nav #logo img {
  width: 100%;
  /* border: var(--borderBlack); */
 }
 nav ul {
  flex-flow: column;
 }
 nav ul li a {
  padding: 0;
 }
 nav ul li:first-child {
  margin: 0.5vw 0 0 0;
 }
 /* ________________________________________
FORM TO SUBMIT EMAIL
________________________________________ */
 form {
  margin: 22.8vw auto 0 auto;
 }
 /* ________________________________________
MAIN SECTION
________________________________________ */
 main {
  width: 85%;
 }
 .textOfFeature {
  /* border: var(--borderBlack); */
  padding: 0 0 3vw 0;
 }
 /* ________________________________________
VIDEO FROM YOUTUBE
________________________________________ */
 iframe {
  width: 90%;
  height: 400px;
 }
 /* ________________________________________
PRICES
________________________________________ */
 #containerOfAllTheCartToSell {
  flex-flow: column wrap;
 }
 #sectionOfTenorTrombone, #sectionOfBassTrombone, #sectionOfValveTrombone {
  width: 250px;
  margin: 3.8vw auto;
 }
 /* ________________________________________
FOOTER
________________________________________ */
 footer {
  /* border: var(--borderGreen); */
  width: 100%;
  display: flex;
  flex-flow: column wrap;
  text-align: center;
  margin: 2vw auto;
 }
 @media only screen and (max-width: 600px) {
  /* ________________________________________
FORM TO SUBMIT EMAIL
________________________________________ */
  form {
   margin: 28.8vw auto 0 auto;
  }
  form h1 {
   width: 410px;
   margin: auto;
   /* border:var(--borderBlack) */
  }
  /* ________________________________________
PRICES
________________________________________ */
 }
 @media only screen and (max-width: 420px) {
  /* ________________________________________
FORM TO SUBMIT EMAIL
________________________________________ */
  form {
   margin: 35.8vw auto 13vw auto;
   display: flex;
   justify-content: center;
   align-content: center;
   /* border: var(--borderBlack); */
  }
  form h1 {
   width: 85%;
  }
  form input {
   width: 220px;
  }
 }
 @media only screen and (max-width: 320px) {
  form {
   margin: 42.8vw auto 13vw auto;
  }
  /* ________________________________________
PRICES
________________________________________ */
  #sectionOfTenorTrombone, #sectionOfBassTrombone, #sectionOfValveTrombone {
   width: 220px;
  }
 }
              
            
!

JS

              
                
              
            
!
999px

Console