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

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

<html>
<!---START NAV SECTION--->
<header id="header">
  <div class="nav">
    <nav id="navbar" class="navbar">
      <ul>
        <li><a href="#welcome-section">About</a></li>
        <li><a href="#projects">Projects</a></li>
        <li><a href="#contact">Contact</a></li>
      </ul>
    </nav>
  </div>
</header>
<!---END NAV SECTION--->

<!---START WELCOME SECTION--->
<section id="welcome-section">
  <div>
    <h1 id="title1">Hi there! I'm Rude!</h1>
    <h3 id="title2">People still like me for some reason</h3>
    <p id="title3">So let me design your website!</p>
  </div>
</section>
<!---END WELCOME SECTION--->

<!---START PROJECT SECTION--->
<section id="projects" class="project-section">
  <h3 id="prohead">Look at the things I've shoddily made!</h3>

  <div id="prolinks">
    <a href="https://codepen.io/RudesCode/full/qBrZGGO" target="_blank" id="profile-link" class="project-tile">
    <img src="https://ychef.files.bbci.co.uk/1600x900/p01j3jyb.webp" alt="Ziggy" class="project-img">
      <p class="project-title"><span>Tribute Page</span></p></a>
    
    <a href="https://codepen.io/RudesCode/full/ZEeORYa" target="_blank" id="profile-link" class="project-tile">
    <img src="https://i1.wp.com/lolzombie.com/wp-content/uploads/2011/10/hippo-rainbow.jpg?w=500&ssl=1" alt="Hippo" class="project-img">
      <p class="project-title"><span>Survey Form</span></p></a>
    
    <a href="https://codepen.io/RudesCode/full/KKWgbEV" target="_blank" id="profile-link" class="project-tile" id="PLP">
    <img src="https://images-na.ssl-images-amazon.com/images/I/61oFRNoyOYL._AC_UX385_.jpg" alt="Ziggy" class="project-img" href="#PLP">
      <p class="project-title"><span>Product Landing Page</span></p></a>
    
    <a href="https://codepen.io/RudesCode/full/MWpprJz" target="_blank" id="profile-link" class="project-tile">
    <img src="https://www.craftsman.com/NA/PRODUCT/IMAGES/3000x3000x96//CMXGBAM1054543/CMXGBAM1054543_1.jpg?resize=600x600" alt="Ziggy" class="project-img" href="">
    <p class="project-title"><span>Technical Document Page</span></p></a>

  </div>
</section>
<!---END PROJECT SECTION--->
  
<!---START CONTACT SECTION--->
<section id="contact">
  <div>
    <h4>Please don't contact me, I have severe social anxiety</h4>
    <p>But I also need money</p>
  </div>
</section>
<!---END CONTACT SECTION--->
</html>
              
            
!

CSS

              
                :root {
  --main-blue: dodgerblue;
}

html {
  background-color: #ff80ed;
  text-align: center;
  font-style: sans-serif;
  color: orangered;
  font-size: 40px;
}

/* Nav Bar */

#header {
  display: flex;
  background: #6a0dad;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
}

.nav {
  width: 95%;
  margin: 0 auto;
  font-family: sans serif;
  font-size: 30px;
  height: 100px;
}

.navbar {
  text-align: right;
  float: right;
}

nav ul {
  list-style: none;
}

nav li {
  display: inline-block;
  text-align: center;
  margin-left: 50px;
  padding-bottom: 0px;
}

nav a {
  text-decoration: none;
  color: #ff80ed;
}

@media screen and (max-width: 800px) {}

/* Welcome Section */

#welcome-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
}

#title1 {
  margin: 0;
  color: white;
}

#title2 {
  margin: 0;
  color: lightgrey;
}

#title3 {
  margin: 0;
  color: white;
}

@media screen and (max-width: 800px) {}

/* Project Section */

.project-section {
  background: var(--main-blue);
  color: yellow;
  display: grid; 
  padding-top: 3%;
  height: 100vh;
  left: 0;
}

#prolinks {
  display: flex;
  float: center;
  margin: 2em 10em;
}

.project-tile {
  margin: 20px;
  text-decoration: none;
  color: yellow;
}

.project-img {
  height: 400px;
  width: 400px;
  object-fit: cover;
  display: inline-block;
}

.project-title {
  
}

#contact {
  height: 100vh;
  padding-top: 5%;
}

h4, p {
  text-align: center;
}
              
            
!

JS

              
                
              
            
!
999px

Console