Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

              
                
<!--Start of row--> 
  <header class="row header">
  
 <!--Start of header column--> 
    <div class="text-center col-12">
    
    <img class="logo" src="https://i.postimg.cc/8z0dKTcL/cookiesandcupcakes-logo-for-site.png" alt="logo" />
    </div> 
</header>
<!-- end header column -->

<!-- Nav Start-->
<ul class="nav justify-content-center">
  <li class="nav-item">
    <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Home</a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#">About</a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#">Treats</a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#">Visit Us</a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#">Contact</a>
  </li>
</ul>
<!-- Nav End -->
 

  <!--Start Cupcake of Month container-->
  <div class="jumbotron">
  <h1 class="display-4">Try our Cupcake of the Month!</h1>
  <p class="lead">SALTED CARAMEL MOCHA</p>
  <hr class="my-4">
  <p>Inspired by a coffeehouse favorite, you are sure to love this sweet and salty treat.</p>
    <div class="text-center">
      <a class="button btn btn-lg" href="#" role="button">Learn More</a></div>
</div>
<!--End Cupcake of Month container-->

<!-- Start Browse Treats -->
<div class="container col-12">
<div class="col-12">
      <br>
       <h2> Browse our selection of delicious treats</h2> <br>
    </div> 
    <!--End of first column-->
  </div>
  
<div class="container">
  <!--Start of More Treats row-->
 <div class="row">
  
    <!--Start of first column--> 
   <div class="col-12 col-sm-4">
  
      <a href=""><img class="img-responsive" src="https://i.postimg.cc/15DsK1cX/cookie-photo.png" alt="Cookies"/></a>
      <h5>Cookies</h5>
    
   </div>
   <!--End of first column-->
   
  <!--Start of second column-->  
  <div class="col-12 col-sm-4"> 
    
    <a href=""><img class="img-responsive" src="https://i.postimg.cc/wBCw2Zkx/more-cupcakes-photo.png" /></a>
    <div class="container" style="text-align: center;">
    <h5>Cupcakes</h5>
  </div>
   </div>
  <!--End of second column--> 
   
  <!--Start of third column-->  
  <div class="col-12 col-sm-4"> 
    
    <a href=""><img class="img-responsive" src="https://i.postimg.cc/wvFsMs3K/more-treats-photo.png" /></a>
    <h5>More Treats</h5>
    <br>
    
  </div>
  <!--End of third column--> 
     
 </div> <!--End of row--> 
  <div class="text-center">
    <p>Order online for local delivery!</p>
      <a class="button btn btn-lg" href="#" role="button">Place an Order</a></div> <br>
</div>
</div> <!--End of container--> 


<div class="mailinglist container col-12">
  <p> Join our mailing list to stay up to date with what's new and recieve exclusive offers. </p>
  <form>
  <div class="form-group">
    <div class="row col-12"> <!-- start enter email -->
    <input type="email" class="form-control col-7" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email"> 
      </div> <!-- end enter email -->
    
        <small style="color: white;" id="emailHelp" class="form-text text-muted">We hate spam and promise to keep your inbox free of it.</small>
    <br>
    
    <div class=" row col-12"> <!--start submit-->
    <button type="submit" class="btn button col-3 submit">Submit</button>
      </div> <!--end submit-->
  </div> <!--end form group-->
  </div> <!--end mailing list-->
  
  <div id="footer">
  <footer class="row footer">
    
  <!--Start of first column-->  
  <div class="col-12 col-sm-6">  
      <h4 class="footer-headline">Our Hours</h4>
      <dl>
        <dt>Monday</dt>
        <dd>8:00-5:00<dd/>
        <dt>Tuesday</dt>
        <dd>8:00-5:00<dd/>
        <dt>Wednesday</dt>
        <dd>8:00-5:00<dd/>
        <dt>Thursday</dt>
        <dd>8:00-5:00<dd/>
        <dt>Friday</dt>
        <dd>8:00-6:00<dd/>
        <dt>Saturday</dt>
        <dd>9:00-12:00<dd/>
        <dt>Sunday</dt>
        <dd>Closed<dd/>
    </dl>
   </div>   <!--End of first column-->  
    
    <div class="col-12 col-sm-6 social">
      <h4 class="footer-headline">Let's Socialize</h4>
        <a href=""><i class="fa fa-facebook" style="font-size:30px;"></i></a>
      <a href=">"<i class="fa fa-twitter"style="font-size:30px;"></i></a>
    <a href=">"<i class="fa fa-instagram"style="font-size:30px;"></i></a>
<a href=">"<i class="fa fa-pinterest"style="font-size:30px;"></i></a>
<br>
<br>
<h4 class="footer-headline" style="padding-bottom: 5px;">Visit Us</h4>
<p style="text-align: left;">815 Orange St, Orlando, FL 32801</p>
      </div>

    <div class="text-center col-12 copyright">Copyright © 2019 Cookies and Cupcakes Bakery. All Rights Reserved.</div>
    </footer>
    </div> <!-- end footer -->
  
              
            
!

CSS

              
                body{
  background-color: #664232;
  color: white;
  font-family: "open sans";
}

.header{
  background-color: white;
  padding-top: 20px;
  padding-bottom: 20px;
}

.nav{
  background-color: white;
  text-transform: capitalize;
  padding-bottom: 20px;
}

.nav a{
  text-transform: capitalize;
  color: #664232;
}

.nav a:hover{
  border: none;
}

.nav-link active{
  background-color: #F78E7B;
  font-weight: bold;
}

p{
  text-align: center;
  font-size: 17px;
}

h1, h2, h3, h4, h5, h6{
  text-align: center;
  font-weight: normal;
  font-family: "Arima Madurai", "open sans", sans-serif;
}

h1{
  color: ;
}

a{
  text-align: center;
  color: #F78E7B;
  font-weight: 500;
  font-size: 18px;
}

a:hover{
  color: #F78E7B;
  text-decoration: none;
}

.button{
  background-color: #F78E7B;
  color: white;
  border: 1px solid white;
  width: 200px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 18px;
}

.caramel{
  text-transform: uppercase;
}

.img-responsive{
  width: 100%;
  height: auto;
  padding-bottom: 10px;
  padding-top: 10px;
}

.logo{
  width: 200px;
}

.btn btn-primary{
  color: white;
  background-color: #F78E7B;
}

.btn:hover{
  color: #664232;
}

#cupcakeofmonth{
  background-color: #F78E7B;
  padding-bottom: 10px;
  padding-top: 20px;
  margin-bottom: 25px;
}

#cupcakeofmonth p{
  text-align: center;
  font-size: 18px;
}

#cupcakeofmonth h1, h3{
  font-weight: bold;
}

#browsetreats{
  padding-bottom:
    50px;
}

.jumbotron{
 background-image:    url(https://i.postimg.cc/qvv2Bss0/cookiesandcupcakes-photo-for-desktop-site2.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  color: #664232;
  border-bottom: 3px solid #F78E7B;
  height: 800px;

}

.lead{
  font-size: 28px;
  font-weight: 400;
}

.mailinglist{
  background-color: #F78E7B;
  padding-top: 25px;
  padding-bottom: 25px;
}

.form-control{
  width: 500px;
  margin: 0 auto;
}

.form-text{
  text-align: center;
}

.submit{
  margin: 0 auto;
}

.text-muted {
    color: #fff !important;
}

footer{
  padding: 35px;
}


footer dt {
  float:left;
  width:50%;
}

.footer-headline{
  text-align: left;
  padding-bottom: 10px;
  padding-top: 20px;
}

.copyright{
  margin: 0 auto -40px;
  text-align: center;
  font-size: 14px;
  padding-top: 10px;
}

ul{
  list-style: none;
}

.fa{
  padding-right: 20px;
}

.social{
  margin-bottom: 20px;
}
              
            
!

JS

              
                var paragraphs = document.getElementsByTagName("p");
paragraphs[0];

              
            
!
999px

Console