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 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

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

  
  <header id="header">
    <div class="title-and-img">
      <img id="header-img" src="https://image.freepik.com/free-vector/cute-corgi-dog-eating-bone-cartoon_138676-2534.jpg" alt="Dog icon">
      <h1>The Puppy Palace</h1>
    </div>
    <nav id="nav-bar">
      <ul>
        <li><a class="nav-link" href="#services">Services</a></li>
        <li><a class="nav-link" href="#pricing">Pricing</a></li>
        <li><a class="nav-link" href="#events">Events</a></li>
      </ul>
    </nav>
  </header>
  
<main id="main">
  <section id="hero">
    <h2>Sign up to our mailing list</h2>
    <form id="form" action="https://www.freecodecamp.com/email-submit">
      <input id="email" type="email" name="email" placeholder="Enter your email"
             pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$">
      <input id="submit" type="submit" value="Join Us">
    </form>
  </section>
  
  <section id="services">
    <div class="bath">
      <div>
        <h3>Bath &amp; Dry</h3>
        <p>Whether you pooch needs a quick scrub or a deep clean, we've got you covered!</p>
      </div>
    </div>
    
    <div class="trim">
      <div>
        <h3>Coat Trim</h3>
        <p>Anything from a little trim to full re-vamp, we're happy to help.</p>
      </div>
    </div>
    
    <div class="nails">
      <div>
        <h3>Nail Trim</h3>
        <p>We have lots of experience trimming nails, from their very first nail trim right up to OAPs, we'll make sure your fur baby is comfortable and reassured.</p>
      </div>
    </div>
  </section>
  
  
  <!-- COPYWRITE HOLDER AnimalWised ****I DO NOT OWN THIS VIDEO**** Please check our their channel -->
  <section class="video">
    <h2>Here's a basic tutorial on grooming:</h2>
    <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/wI9xARUzo1E" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  </section>
  
  <section id="pricing">
    <div class="third puppy">
      <div class="prices">
        <p>Puppy</p>
        <p class="groom">Groom</p>
      </div>
      <h3><small>From </small><span>£15</span></h3>
      <p>Puppy Grooms are specifically tailored to your pooch with lots of reassuring cuddles. Include:</p>
      <ul>
        <li>A warm bath with a suitable shampoo</li>
        <li>Ear cleaning</li>
        <li>Cliping on request</li>
        <li>A gentle dry with our now noise dryer</li>
        <li>Nails clipped</li>
      </ul>
      <button>Book now</button>
    </div>
    
    <div class="third full">
      <div class="prices">
        <p>Full</p>
        <p class="groom">Groom</p>
      </div>
      <h3><small>From </small><span>£25</span></h3>
      <p>A double wash in a suitable shampoo for your dogs skin and coat requirements. Includes:</p>
      <ul>
        <li>Dried using a standard blaster</li>
        <li>Full brush and comb through</li>
        <li>Ears cleaned</li>
        <li>Ears plucked <small>( if requested and necessary)</small></li>
        <li>Cut using your clippers and scissors</li>
        <li>Paw pads cleared of excess hair</li>
        <li>Nails trimmed</li>
        <li>Skin folds/creases cleaned and dried <small>( pugs, bulldogs etc )</small></li>
        <li>Sprayed with a fragrance</li>
      </ul>
      <button>Book now</button>
    </div>
    
    <div class="third basic">
      <div class="prices">
        <p>Quick</p>
        <p class="groom">Groom</p>
      </div>
      <h3><small>From </small><span>£18</span></h3>
      <p>A double wash in a suitable shampoo for your dogs skin and coat requirements. Includes:</p>
      <ul>
        <li>Dried using a standard dryer</li>
        <li>Coat is brushed through and combed if needed</li>
        <li>Ears cleaned</li>
        <li>Nails trimmed</li>
        <li>Sprayed with a fragrance</li>
      </ul>
      <button>Book now</button>
    </div>
  </section>
  
  <section id="events">
    <div class="half meet">
      <h3>Puppy Meet Ups</h3>
      <button>See the schedule</button>
    </div>
    
    <div class="half shows">
      <h3>Dog Shows</h3>
      <button>Go to calendar</button>
    </div>
  </section>
  
</main>
  
<footer id="footer">
  <nav id="footer-nav">
    <ul>
      <li><a href="">Contact Us</a></li>
      <li><a href="">See Locations</a></li>
    </ul>
  </nav>
  <p>&copy; freeCodeCamp project by Ness</p>
</footer>

              
            
!

CSS

              
                /* BODY STYLES */
body {
  font-family: "Open Sans", sans-serif;
  max-width: 1000px;
  min-width: 300px;
  margin: auto;
  color: #580138;
}
h1,
h2,
h3,
h4 {
  font-family: "Shippori Mincho B1", cursive;
}

/* HEADER STYLES */
#header {
  min-width: 300px;
  background-color: #ffc0cb;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.title-and-img {
  padding-left: 2.5rem;
  display: flex;
}
#header-img {
  height: 100px;
  width: auto;
  margin-right: 1.5rem;
  border-radius: 50%;
}
#nav-bar {
  padding-right: 2rem;
}
#nav-bar ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
}
#nav-bar ul li a {
  text-decoration-color: #580138;
  text-decoration-style: wavy;
  padding: 1.5rem;
  border-radius: 50%;
  color: #580138;
}
#nav-bar ul li a:hover {
  background-color: #580138;
  color: #ffc0cb;
  text-decoration: none;
}

/* MAIN STYLES */
#main {
  position: relative;
  top: 3rem;
  max-width: 90%;
  margin: auto;
}

/* HERO SECTION STYLES */
#hero {
  padding-top: 4rem;
  text-align: center;
}
#hero h2 {
  position: relative;
  bottom: -0.5rem;
}
#form {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
#email {
  width: 40%;
  padding: 7px 5px;
  margin: 1rem auto;
  border-radius: 5px;
  border: 1px solid #580138;
  box-shadow: 1px 1px 2px 1px #580138;
}
#submit {
  width: 41%;
  padding: 7px 5px;
  border-radius: 5px;
  border: none;
  background-color: #ffc0cb;
  color: #580138;
  box-shadow: 3px 3px 8px 4px #580138;
}
#submit:hover {
  border: none;
  background-color: #580138;
  color: #ffc0cb;
  box-shadow: 3px 3px 8px 4px #ffc0cb;
}

/* SERVICES SECTION STYLES */
#services {
  display: flex;
  flex-direction: column;
  margin: auto;
}
#services h3 {
  font-size: 1.6rem;
}
.bath,
.trim,
.nails {
  display: flex;
  margin-top: 3rem;
}

/* VIDEO STYLES */
.video {
  margin: 6rem 0;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;
}
#video {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

/* PRICING STYLES */
#pricing {
  margin: 6rem 0;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
}
.third {
  margin: 0.5rem;
  height: auto;
  width: 30%;
  min-width: 200px;
  border: 4px dotted #580138;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#pricing .prices {
  font-size: 1rem;
  text-transform: uppercase;
  text-align: center;
  background-color: #58013840;
  padding: 0 1rem;
  margin-top: 0;
  border-radius: 1rem 1rem 0 0;
}
#pricing .prices p {
  font-size: 1.15rem;
}
.groom {
  margin-top: -20px;
}
#pricing h3 {
  font-size: 2.1rem;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 2rem;
}
#pricing h3 small {
  font-size: 0.8rem;
  text-decoration: none;
}
#pricing h3 span {
  text-decoration: underline;
  text-decoration-style: wavy;
}
#pricing p {
  font-size: 0.7rem;
  padding: 0 1.5rem;
}
#pricing ul {
  list-style-type: circle;
  padding: 0 1.5rem;
  height: 100px;
  overflow: scroll;
}
#pricing ul li {
  font-size: 0.7rem;
}
#pricing button {
  padding: 1rem;
  background-color: #58013840;
  color: #580138;
  border: none;
  border-radius: 0 0 1rem 1rem;
}
#pricing button:hover {
  background-color: #580138;
  color: #ffc0cb;
}

/* EVENTS STYLING */
#events {
  margin: 6rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.half {
  margin: 1rem;
  width: 45%;
  min-width: 300px;
  height: 300px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex: 1 0 auto;
}
#events h3 {
  width: 50%;
  font-size: 1rem;
  text-align: center;
  background-color: #ffc0cb99;
  color: #580138;
  padding: 0.71rem;
  margin-bottom: 0;
  border-radius: 0 0 0 1rem;
}
#events button {
  width: 50%;
  padding: 1rem;
  background-color: #580138;
  color: #ffc0cb;
  border: none;
  border-radius: 0 0 1rem 0;
}
#events button:hover {
  background-color: #ffc0cb;
  color: #580138;
}
.meet {
  background-image: url("https://images.unsplash.com/photo-1494947665470-20322015e3a8?ixid=MXwxMjA3fDB8MHxzZWFyY2h8N3x8ZG9nc3xlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60");
  background-size: cover;
  border-radius: 1rem;
}
.shows {
  background-image: url("https://images.unsplash.com/photo-1580230273693-c83dfa2b9bac?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1250&q=80");
  background-size: cover;
  border-radius: 1rem;
}

/* FOOTER STYLES */
#footer {
  margin-right: 4rem;
}
#footer p {
  font-size: 0.6rem;
  text-align: right;
}
#footer-nav ul {
  list-style: none;
  border: none;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
#footer-nav ul a {
  text-decoration: none;
  font-size: 0.8rem;
  color: #580138;
}
#footer-nav ul a:hover {
  font-size: 1.2rem;
}

/* MEDIA STYLES */

/* FOR SCREEN WITH MAX-WIDTH 400PX */
@media (max-width: 400px) {
  #header {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
  }
  .title-and-img {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 0;
  }
  #header-img {
    width: 6rem;
    margin: auto;
  }
  #header h1 {
    font-size: 1.8rem;
  }
  #main {
    padding-top: 9rem;
  }
  #hero {
    min-width: 5rem;
  }
  .bath,
  .trim,
  .nails {
    display: flex;
    flex-direction: column;
  }
  #services {
    margin: auto 0.5rem;
    text-align: center;
  }
   #email {
    width: 80%;
  }
  #submit {
    width: 83.5%;
  }
  #pricing {
    display: flex;
    flex-flow: row wrap;
  }
  .third,
  .half {
    flex: 1 0 auto;
  }
  #footer {
    margin-right: 1rem;
  }
}

/* FOR SCREENS BETWEEN 400PX AND 721PX */
@media (min-width: 400px) and (max-width: 721px) {
  #header {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
  }
  #header-img img {
    border-radius: 50%;
    width: auto;
    margin-right: 0.5rem;
  }
  .title-and-img {
    margin-left: -28%;
  }
  #main {
    padding-top: 4rem;
  }
   #email {
    width: 60%;
  }
  #submit {
    width: 63%;
  }
  #pricing {
    display: flex;
    flex-flow: row wrap;
  }
  .third,
  .half {
    flex: 1 0 auto;
  }
  #footer {
    margin-right: 3rem;
  }
}

              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console