cssAudio - ActiveCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <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>
            
          
!
            
              * {
  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;
  }
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console