css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

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

<div class="container">
  <nav id="navbar" class="header">
    <a class="nav-link" href="#welcome-section">Home</a>
    <a class="nav-link" href="#services">Our Services</a>
    <a class="nav-link" href="#projects">Our Portfolio</a>
    <a class="nav-link" href="#contact-us">Get in Touch</a>
  <aside class="sidebar-left"></aside>
  <main class="main">
    <section id="welcome-section">
      <h1 id="title">Encompass Web Solutions</h1>
    <section class="services">
      <h1>What we do</h1>
      <p>Pete's Web Development is a boutique web agency that can assist in all aspects of your businesses's digital success.</p>
      <p>Our team of exceptional individuals have over 20 years combined of web development, design and marketing to ensure only the best results for our clients.</p>
      <h2>Our services inclue:</h2>
          <li>Beautiful modern web design</li>
          <li>Cutting edge, responsive web development</li>
          <li>Full SEO digital marketing and content creation</li>
    <section id="projects">
      <h1 class="portfolio-header">Portfolio</h1>
      <iframe class="project-tile" scrolling='no' title='Technical Documentation Template' src='//codepen.io/PETE0308/embed/RYeqPB/?height=265&theme-id=0&default-tab=result&embed-version=2' frameborder='no' allowtransparency='true' allowfullscreen='true'>See the Pen <a href='https://codepen.io/PETE0308/pen/RYeqPB/'>Technical Documentation Template</a> by Pete (<a href='https://codepen.io/PETE0308'>@PETE0308</a>) on <a href='https://codepen.io'>CodePen</a>.
      <iframe class="project-tile" scrolling='no' title='Fork Me! FCC: Test Suite Template' src='//codepen.io/PETE0308/embed/RYjErO/?height=265&theme-id=0&default-tab=result&embed-version=2' frameborder='no' allowtransparency='true' allowfullscreen='true'>See the Pen <a href='https://codepen.io/PETE0308/pen/RYjErO/'>Fork Me! FCC: Test Suite Template</a> by Pete (<a href='https://codepen.io/PETE0308'>@PETE0308</a>) on <a href='https://codepen.io'>CodePen</a>.
      <iframe class="project-tile" scrolling='no' title='Landing Page Template' src='//codepen.io/PETE0308/embed/BOOOvJ/?height=265&theme-id=0&default-tab=result&embed-version=2' frameborder='no' allowtransparency='true' allowfullscreen='true' >See the Pen <a href='https://codepen.io/PETE0308/pen/BOOOvJ/'>Landing Page Template</a> by Pete (<a href='https://codepen.io/PETE0308'>@PETE0308</a>) on <a href='https://codepen.io'>CodePen</a>.
      <iframe class="project-tile" scrolling='no' title='CSS Grid Template' src='//codepen.io/PETE0308/embed/pOKMXz/?height=265&theme-id=0&default-tab=result&embed-version=2' frameborder='no' allowtransparency='true' allowfullscreen='true'>See the Pen <a href='https://codepen.io/PETE0308/pen/pOKMXz/'>CSS Grid Template</a> by Pete (<a href='https://codepen.io/PETE0308'>@PETE0308</a>) on <a href='https://codepen.io'>CodePen</a>.
      <p class="portfolio-footer">Click here to <a id="profile-link" target="_blank" href="https://codepen.io/dashboard/">see more of our great work!</a></p>
  <aside class="sidebar-right">
    <h1>Get in touch!</h1>
    <p>Ping us an email with your query and we'll get back to you within 24 hours.</p>
    <form class="contact-us">
      <input type="name" placeholder="First Name">
      <input type="name" placeholder="Last Name">
      <input type="number" placeholder="Phone Number">
      <input type="email" placeholder="Email">
      <input type="submit">
    <h2>Example Sentence</h2>
    <p>&copy; Created for <a class="nav-link" href="https://www.google.com/" target="_blank">Encompass Web Solutions</a></p>
              body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.5;
  margin: 0;

h1 {
  text-align: center;

  display: grid;
  grid-template-columns: 1fr 7fr 2fr;
    "header header header"
    "sidebar-left main sidebar-right"
    "footer footer footer";
  padding-top: 70px;

#navbar {
  grid-area: header;
  background-color: black;
  width: 100%;
  height: 60px;
  justify-items: center;
  position: fixed;
  padding: 30px 0px 0px 30px;

.nav-link {
  text-decoration: none;
  color: white;

.nav-link:hover {
  color: black;
  background-color: white;

.sidebar-left {
  grid-area: sidebar-left;
  background-color: #36383F;

#title {
  font-size: 50px;

.main {
  grid-area: main;
  background-color: white;

#welcome-section {
  background-color: #ADAFBC;
  min-height: 55vh;
  padding-top: 45vh;

.services {
  padding-left: 30px;

#projects {
  display: grid;
  grid-template-colu  mns: 1fr 1fr 1fr;
    ". portfolio-header ."
    "project-tile project-tile project-tile"
    "project-tile project-tile project-tile"
    ". portfolio-footer ."

.portfolio-header {
  grid-area: portfolio-header;

.project-tile {
  grid-area: project-tile;
  width: 30%;

.portfolio-footer {
  grid-area: portfolio-footer;
  text-align: center;

.sidebar-right {
  grid-area: sidebar-right;
  background-color: #36383F;
  color: white;
  padding-left: 20px;

footer {
  grid-area: footer;
  background-color: black;
  color: white;
  padding-left: 20px;
  text-align: center;

@media only screen and (max-width: 367px) {
  .aside {
    border: 2px solid #90C695;
    border-radius: 0;
    width: 90px;
    height: 20px;
    padding: 10px;
    line-height: normal;
              // !! 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. 

  - Select the project you would 
    like to complete from the dropdown 
  - Click the "RUN TESTS" button to
    run the tests against the blank 
  - 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. 

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................