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

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


<header id="header">
  <div>
  <img id="header-img" src="https://seeklogo.com/images/C/cake-food-logo-9A487CF7AA-seeklogo.com.png" alt="Cake Logo" target="_blank">
  </div>
  <p id="The-Cake-Boss">The Cake Boss - Unleashed Creativity through Cakes.
  </p>
  
  <nav id="nav-bar">
    <ul>
      <li><a class="nav-link" href="#AboutUs">About Us</a></li>
      <li><a class="nav-link" href="#WhatWeDo">What We Do</a></li>
      <li><a class="nav-link" href="#Gallery">Gallery</a></li>
      <li><a class="nav-link" href="#Contact">Contact Us</a></li>
    </ul>
  </nav>
  </header>
  


  <section id="AboutUs">
  <h2>About Us</h2>
    <p>The Cake Boss has been in the business of bringing our clients' imagination to life through our cakes and sugar craft designs. Our pioneer Cake Boss Ms. Judy Bunny has been baking and hand crafting beautiful designs since 1998. Its always a pleasure to see a huge smile on the face of every client that works in through our doors.
    </p>
</section>
    <section id="WhatWeDo">
    <h2>What We Do</h2>
    <p>We simply bring to life your imagination through our cakes and sugar craft designs. Our only desire is to ensure that we have a satisfied client every single time.
    </p>
  </section>

 <section id="cake-video">
    <iframe width="560" height="315" src="https://www.youtube.com/embed/yrzOQ2Ssqnw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  </section>
   
    <h2>Gallery</h2>
    <p>Feed your eyes on our succulent cake feast....You're Welcome.
    </p>
   <section id="Gallery">
    <img class="resize" src="https://img.taste.com.au/KoghGSzS/w643-h428-cfill-q90/taste/2016/11/homemade-chocolate-cake-85524-1.jpeg" alt="Chocolate Cake" target="_blank">
    <img class="resize" src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/04/Pound_layer_cake.jpg/220px-Pound_layer_cake.jpg" alt="Pound Layer Cake" target="_blank">
    <img class="resize" src="https://www.patisserie-valerie.co.uk/pv/products/main/fruitsoftheforestdark.png" alt="Fruits of the Dark Chocolate Cake" target="_blank">
    <img class="resize" src="https://www.patisserie-valerie.co.uk/pv/products/main/Macedonianibbedalmonds.png" alt="Macedonian Almond Dribbles Cake" target="_blank">
    <img class="resize" src="https://www.patisserie-valerie.co.uk/pv/products/main/DoubleChocDream.png" alt="Double Dream Chocolate Cake" target="_blank">
    <img class="resize" src="https://www.patisserie-valerie.co.uk/pv/products/main/whitechocdream.png" alt="White Chocolate Cake" target="_blank">
    <img class="resize" src="https://www.patisserie-valerie.co.uk/pv/products/main/GFChocCake.png" alt="Chocolate Cake" target="_blank">
   
    <img class="resize" src="https://keyassets-p2.timeincuk.net/wp/prod/wp-content/uploads/sites/50/2015/05/Naked-Cake-620x620.jpg" alt="Naked Cake" target="_blank">
    <img class="resize" src="http://www.eatout.co.za/wp-content/uploads/2018/03/cakes.jpg" alt="Heart Cake" target="_blank">
    <img class="resize" src="https://static.kidspot.com.au/recipe_asset/646/3457.jpg-20150309012202~q75,dx720y432u1r1gg,c--.jpg" alt="Cup Cakes" target="_blank">
    <img class="resize" src="https://cdn.thewhoot.com/wp-content/uploads/2018/01/Pull-Apart-Cupcake-Cakes--550x461.jpg" alt="Children Party Cup Cake" target="_blank">
    <img class="resize" src="https://i9.fnp.com/images/pr/l/red-velvet-heart-cake-1kg-eggless_1.jpg" alt="Red Velvet Cake" target="_blank">
    <img class="resize" src="https://panifor.pt/wp-content/uploads/2017/11/Red-Velvet.jpg" alt="Red Velvet" target="_blank">
  </section>

 
  <section id="Contact">
    <h2>Contact Us</h2>
    <p>We would love to bring your ideas and imagination to life and we are only an email away.
    </p>
    <form id="form" action="https://www.freecodecamp.com/email-submit">
    <input name="email" id="email" type="email" placeholder="Your Email Address" required class="form">
      </input>
      <br>
      
      <input name="name" id="name" type="name" placeholder="Your Name" required  class="form">
    </input>
 <br>
<p class="form">Fill your cake aspirations and designs in the form below</p>
<textarea required>Your Ideas.....Our Cakes..</textarea>
 <br>
    <input id="submit" type="submit" value="Submit" class="form">
</input>
  </form>
  </section>

<footer id="footer">
  &copy; 2018 Project Lily Designs
  <br>
   All trademarks and registered trademarks appearing on this site are the property of their respective owners.
</footer>
    
    
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Charmonman:400,700');
@import url('https://fonts.googleapis.com/css?family=Roboto');
@import url('https://fonts.googleapis.com/css?family=Lato');

@media (max-width: 700px) {
  #header-img {
    width: 50px;
  }
}

body {
  font-size: medium;
  background-color: pink;
  font-family: 'Lato';
  margin: 0px;
  
}
p {
  font-size: 100%;
  font-family: 'Lato';
 
}
h2 {
  font-family: 'Roboto';
  font-size: 120%;
  color: #954b4b;
  text-align: center;
  
}


#The-Cake-Boss {
  font-family: 'Lato';
  font-weight: bold;
  font-size: 150%;
 
}
#header-img {
  max-width: 25%;
  max-height: auto;
}
 

#header ul {
  
}

#header ul li {
  list-style-type: none;
  display: inline-block;
  margin-right: 20px; 
}

#header ul li a {
  text-decoration: none;
  color: #954b4b;
  font-weight: bold;
  font-size: 125%;  
}



#header  {
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #e6a1ba;
}

.resize {
  height: 120px;
  width: auto;
  overflow: hidden;
}
#Gallery {
  max-width: 900px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: row-reverse; 
  align-items: center;
}
.form {
  font-family: 'Charmonman', cursive;
  font-weight: bolder;
  font-size: 150%;
  color: #954b4b;
  border: none;
  border-bottom: 1px;
  background-color: pink;
}


#cake-video {
  display: flex;
  justify-content: space-evenly;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 2px  #eee;
    border-radius: 4px;
    background-color: pink;
    font-size: 10px;
    resize: none;
    font-family: 'Charmonman', cursive;
    font-size: 150%;
    color: #954b4b;
    font-weight: bolder;
}
footer {
  text-align: center;
  font-weight: bold;
  background-color: #e6a1ba;
}
              
            
!

JS

              
                
              
            
!
999px

Console