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.

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                <html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <meta name="description" content="Quality service and amazing looking jobs.">
    <meta name="keywords" content="fence, deck, canada, ashur home renovations, kitchener, digging holes,house, additions, sunroom, driveways, ashur, home renovations, basement finishing">
    <meta name="author" content="Peter Putros">
    <title>Ashur Home Renovations | Contact</title>
    <link rel="stylesheet" href="../css/style.css">
  </head>
  <body>
    <header>
      <div class="container">
        <div id="branding">
          <h1><span class="highlight">Ashur</span> Home Renovations</h1>
        </div>
        <nav>
          <ul>
            <li><a href="../index.html">Home</a></li>
            <li><a href="./services.html">Services</a></li>
            <li class="current"><a href="contact.html">Contact</a></li>
            <li><a href="./gallery.html">Gallery</a></li>
          </ul>
        </nav>
      </div>
    </header>

    <style>

    h1
    {
      font-family: 'Open Sans', sans-serif;
      font-size: 32px;
      line-height: 28px;

    }

    p
    {
      display: inline-block;
      text-align: center;
      font-family: 'Open Sans', sans-serif;
      font-size: 25px;
      line-height: 28px;

    }

div.a
{
  display: inline-block;
  width: 49%;
}

div.b
{
}

div.c
{
  display: inline-block;
  width: 50%;
}
@media only screen and (max-width: 768px) {
  div.a, div.c {
    display: block;
  }
}
    </style>

    <div id="map"></div>
    <script>
    var citymap = {
            Kithcener: {
              center: {lat: 43.450301, lng: -80.483192},
              population: 800000
            }
          };

          function initMap() {
            // Create the map.
            var map = new google.maps.Map(document.getElementById('map'), {
              zoom: 8,
              center: {lat: 43.450301, lng: -80.483192},
              mapTypeId: 'terrain'
            });

            // Construct the circle for each value in citymap.
            // Note: We scale the area of the circle based on the population.
            for (var city in citymap) {
              // Add the circle for this city to the map.
              var cityCircle = new google.maps.Circle({
                strokeColor: '#FF0000',
                strokeOpacity: 0.8,
                strokeWeight: 2,
                fillColor: '#FF0000',
                fillOpacity: 0.35,
                map: map,
                center: citymap[city].center,
                radius: Math.sqrt(citymap[city].population) * 100
              });
            }
          }
        </script>
        <script async defer
       src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD4wcWgofExY1cBWpvkd8poDjSotxhV0ao&callback=initMap">
       </script>

       <div class="b">
       <h1>Contact Us</h1>
       </div>

     <div class="c">
     <p><br/>We Are Located Right Here In The Kitchener/Waterloo Area,<br/> But Serve Surrounding Areas Like Hamilton or Elora.<br/><br/>At Ashur Home Renovations We Are Happy To Meet and Help New Clients.<br/> We Can Always Assure You That The Finished Product Will Look Amazing.<br/> So What Are You Losing? Give Us a Call Today and Get a Free Quote.</p>
   </div>

     <div class="a">
       <h2>Phone: 519-496-8693<br/>Email: ashurhomerenovations@gmail.com</h2>
     </div>

        <footer>
          <p>Ashur Home Renovations, Copyright &copy; 2018</p>
        </footer>
  </body>
</html>

              
            
!

CSS

              
                body
{
  font-family: arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  padding: 0;
  margin: 0;
  background-color: #f4f4f4
}

.footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 20px;
  color: #ffffff;
  background-color: #e8491d;
  text-align: center;
}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
    display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor:pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.container
{
  width: 80%;
  margin:auto;
  overflow: hidden;
}

.button
{
  padding: 20px 20px;
  max-width: 100px;
  text-align: center;
  display:block;
  text-decoration: none;
  border-radius: 3px;
}

.button-primary
{
  margin: 0 auto;
  background: slategrey;
  color: #fff
}

.button-primary:hover
{
  background: lightslategrey;
}

.bb{
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 15px 32px;
  text-decoration: none;
  text-align: center;
  display: block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}

.wrapper
{
  text-align: center;
}

ul
{
  margin: 0;
  padding: 0;
}

header
{
    background: #35424a;
    color: #ffffff;
    padding-top: 30px;
    min-height: 70px;
    border-bottom: #e8491d 3px solid;
}

header a
{
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 16px;
}

header li
{
  float: left;
  display: inline;
  padding: 0 20px 0 20px;
}

header #branding
{
  float: left;
}

header #branding h1
{
  margin: 0;
}

header nav
{
  float: right;
  margin-top: 10px;
}

header .highlight, header .current a
{
  color: #e8491d;
  font-weight:bold;
}

header a:hover
{
  color:#cccccc;
  font-weight: bold;
}

/* Always set the map height explicitly to define the size of the div
 * element that contains the map. */
#map {
  float: right;
  margin-top: 0%;
  margin-bottom: 1%;
  margin-left: 1%;
  height: 50%;
  width: 99%;
}
/* Optional: Makes the sample page fill the window. */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}


#showcase
{
  min-height: 600px;
  background:url('../gallery/showcase.jpg') no-repeat 0% 50%;
  text-align: center;
  color: #ffffff;
}

#showcase h1
{
  margin-top: 100px;
  font-size: 55px;
  margin-bottom: 10px;
}

.contact h1
{
    margin-left:20%;
    width:auto;
    font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size:30px;
    color:#000000;
    float:left;
    font-weight:normal;
    margin:0 20%;
    padding:0;
    }

#containerIntro h1 {
    display: inline;
    text-align: center;
    float:  left;
    font-family: 'Open Sans', sans-serif;
    font-size: 32px;
    line-height: 28px;
    margin: 2% 20%;
}

#containerIntro p
{
  display: inline;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  font-size: 25px;
  line-height: 28px;
  margin: 5% -24%;
}

#showcase p
{
  font-size: 20px;
}

#quote
{
  padding: 15px;
  color: #ffffff;
  background: #35424a;
}

#quote h1
{
    float: left;
}

#quote form
{
    font-size:18px;
    float: right;
}

#boxes
{
  margin-top: 20px;
}

#boxes .box
{
  float: left;
  text-align: center;
  width: 30%;
  padding: 25px;
}

#boxes .box img{
  width: 200px;
}

article#main-col
{
  float: left;
  width: 65%;
  font-size: 30px;
}

ul#services li{
  list-style: none;
  padding: 20px;
  border: #cccccc solid 1px;
  margin-bottom: 5px;
  background: #e6e6e6;
  font-size: 20px;
}

footer{
  padding: 20px;
  margin-top: 20px;
  color: #ffffff;
  background-color: #e8491d;
  text-align: center;
}

@media(max-width: 768px){
  header #branding,
  header nav,
  header nav li,
  #map,
  #containerIntro p,
  #containerIntro h1,
  .gallery,
  #newsletter h1,
  #newsletter form,
  #boxes .box,
  article#main-col{
    float:none;
    text-align:center;
    width:100%;
  }

  #quote button
  {
    display: block;
    width: 100%;
  }

  header
  {
    padding-bottom: 20px;
  }

  #showcase h1
  {
    margin-top: 40px;
  }

              
            
!

JS

              
                
              
            
!
999px
We'd ask you for an infinite loop joke, but we'd never hear the end of it.

Console