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

Auto Save

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

              
                <link href="https://fonts.googleapis.com/css?family=Indie+Flower|Overpass+Mono" rel="stylesheet">

<div class="nav-bar">
  <ul>
    <li><a href="https://codingislove.com" target="_blank">home</a></li>
    <li class="hide"><a href="https://codingislove.com" target="_blank">codingislove</a></li>
    <li class="hide"><a href="https://codingislove.com" target="_blank">profile</a></li>
  </ul>
</div>

<div id="wrapper">

  <div class="content">
    <div class="box">
      <p>codingislove</p>
    </div>

    <div class="box-1">
      <p>codingislove</p>
    </div>
  </div>

</div>

<div id="footer">
  <ul>
    <li><a href="https://codingislove.com">codingislove</a></li>
  </ul>
</div>
              
            
!

CSS

              
                * {
  margin: 0px;
  padding: 0px;
}


/* navigation bar */

.nav-bar {
  width: 100%;
  background-color: #fff;
  height: 45px;
  border-top: 5px solid #00bfb6;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  -moz-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  -o-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  -ms-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.nav-bar ul {
  list-style: none;
  width: 400px;
  margin: 0px auto;
}

.nav-bar ul li {
  float: left;
  line-height: 45px;
  width: 130px;
  text-align: center;
}

.nav-bar ul li a {
  text-decoration: none;
  text-transform: uppercase;
  color: #000;
  font-weight: bold;
  font-family: 'Overpass Mono', monospace;
}

.nav-bar ul li a:hover {
  color: #00bfb6;
}


/* footer  */

#footer {
  width: 100%;
  background-color: #fff;
  height: 45px;
  clear: both;
  box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.16), 0 -2px 10px 0 rgba(0, 0, 0, 0.12);
  -webkit-box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.16), 0 -2px 10px 0 rgba(0, 0, 0, 0.12);
  -ms-box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.16), 0 -2px 10px 0 rgba(0, 0, 0, 0.12);
  -moz-box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.16), 0 -2px 10px 0 rgba(0, 0, 0, 0.12);
  -o-box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.16), 0 -2px 10px 0 rgba(0, 0, 0, 0.12);
  border-bottom: 5px solid #00bfb6;
}

#footer ul {
  list-style: none;
  width: 130px;
  margin: 0px auto;
}

#footer ul li {
  float: left;
  line-height: 45px;
  width: 130px;
  text-align: center;
}

#footer ul li a {
  text-decoration: none;
  text-transform: uppercase;
  color: #000;
  font-weight: bold;
  font-family: 'Overpass Mono', monospace;
}

#wrapper {
  background-color: #ccc;
  width: 500px;
  height: 100%;
  padding: 10px;
  overflow: hidden;
  margin: 30px auto;
  border: 1px solid rgb(0, 191, 182);
}

.content {
  width: 150px;
  margin: auto;
}


/* Aligning the text vertically using line-height and css3 rotate property */

.box {
  width: 100px;
  height: 250px;
  background-color: #fff;
  margin: 20px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  -moz-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  -o-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  -ms-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.box p {
  font-weight: bold;
  text-align: center;
  color: rgb(0, 191, 182);
  text-transform: uppercase;
  font-family: 'Overpass Mono', monospace;
  font-size: 18px;
  line-height: 200px;
  transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
}


/* Aligning the text vertically using css position propetry(relative,absolute) and css3 rotate property */

.box-1 {
  width: 100px;
  height: 250px;
  background-color: #fff;
  position: relative;
  margin: 20px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  -moz-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  -o-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  -ms-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.box-1 p {
  font-weight: bold;
  text-transform: uppercase;
  position: absolute;
  top: 110px;
  left: -18px;
  font-family: 'Overpass Mono', monospace;
  font-size: 18px;
  color: rgb(0, 191, 182);
  transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
}


/* media queries */

@media all and (min-width: 0px) and (max-width: 579px) {
  .nav-bar {
    width: 100%;
  }
  .hide {
    display: none;
  }
  .nav-bar ul {
    width: 150px;
    margin: auto;
  }
  #footer {
    width: 100%;
  }
  #footer ul {
    width: 100px;
    margin: auto;
  }
  #wrapper {
    width: 250px;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console