cssAudio - Activefile-genericCSS - 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.

            
              <div id="bg">
  <div id="container">
    <div id="content">
      <div id="picture">
        <img src="http://i.imgur.com/PVPjvDu.png" alt="" />
        <div class="infoOverlay">
          <div class="headText">Miss Erica</div>
          <div class="subText">Graphic Designer</div>
        </div>
      </div>
      <div id="controls">
        <div class="control">
          <img src="http://i.imgur.com/Fk1Urva.png" alt="icon" class="controlIcon" />
          <br/>
          <span class="txtShadow">30,255</span>
        </div>
        <div class="control">
          <img src="http://i.imgur.com/GfZemFH.png" alt="icon" class="controlIcon" />
          <br/>
          <span class="txtShadow">47,496</span>
        </div>
        <div class="control">
          <img src="http://i.imgur.com/VvEKUVi.png" alt="icon" class="controlIcon" />
          <br/>
          <span class="txtShadow">25,297</span>
        </div>
      </div>
  </div>
  
    <div id="nav">
      <div class="navItem">
        <img src="http://i.imgur.com/bL1IOib.png" alt="icon" class="navIcon" />
        <br/>
        <span class="txtShadow">Profile</span>
      </div>
      <div class="navItem">
        <img src="http://i.imgur.com/N2PPmK9.png" alt="icon" class="navIcon" />
        <br/>
        <span class="txtShadow">Photos</span>
      </div>
      <div class="navItem">
        <img src="http://i.imgur.com/4S8cc2R.png" alt="icon" class="navIcon" />
        <br/>
        <span class="txtShadow">Status Chart</span>
      </div>
      <div class="navItem">
        <img src="http://i.imgur.com/6pLuwuW.png" alt="icon" class="navIcon" />
        <br/>
        <span class="txtShadow">Messages</span>
      </div>
    </div>
    
  </div>
</div>

<a href="http://dribbble.com/shots/1256913-Profile?list=following" target="_blank">Inspiration: Zaib Ali</a>
            
          
!
            
              body{
  
  background-color:#f0f0f0;
  font-family:helvetica;
}

a{
  display:block;
  color:#ad5482;  
  text-decoration:none;
  font-weight:bold;
  margin-top:40px;
  text-align:center;
}

#bg{
  position:relative;
  top:20px;
  height:600px;
  width:800px;
  background:url('http://i.imgur.com/ZhS9cJh.png') center no-repeat;
  background-size:cover;
  margin-left:auto;
  margin-right:auto; 
  border:#fff 15px solid;
}

#container{
  position:relative;
  height:510px;
  width:440px;
  top:45px;
  margin-left:auto;
  margin-right:auto;  
}

#content{
  float:left;  
  z-index:2;
}

#picture{  
  position:relative;
  height:440px;
  width:330px;
  background-color:black;
  z-index:5;
}

#picture img{
  height:440px;
  width:330px;
  -webkit-box-shadow:  0px 0px 15px 0px rgba(0, 0, 0, .7);        
  box-shadow:  0px 0px 15px 0px rgba(0, 0, 0, .7);
}

.infoOverlay{
  position:absolute;
  width:100%;
  height:100px;
  bottom:0px;
  background:rgba(0,0,0,.75);
  padding:20px;
  box-sizing:border-box;
  border-top:rgba(85,75,118,.5) 2px solid;
  z-index:100;
  
}

.headText{
  font-size:16pt;
  font-weight:bold;
  color:white;
  margin-bottom:15px;
}

.subText{
  
  font-size:12pt;
  color:gold;
}

#controls{
  position:relative;
  width:330px;
  height:70px;
  background-color:#867eb9;
  -webkit-box-shadow:  0px 0px 15px 0px rgba(0, 0, 0, .7);        
  box-shadow:  0px 0px 15px 0px rgba(0, 0, 0, .7);
  z-index:2;
}

.control{
  float:left;
  height:100%;
  width:33.33%;  
  padding-top:14px;
  font-size:10pt;
  font-weight:bold;
  text-align:center;
  box-sizing:border-box;
  color:white;
  cursor:pointer;
  border-right:#635da2 2px solid;
  transition:background .5s;
}

.control:hover{
  background:rgba(0,0,0,.2);
}

.control:last-child{
  border-right:#635da2 0px solid;
}

#nav{
  position:relative;
  float:left;
  width:110px;
  height:510px;
  background-color:#bd85b1;
  -webkit-box-shadow:  0px 0px 15px 0px rgba(0, 0, 0, .7);        
  box-shadow:  0px 0px 15px 0px rgba(0, 0, 0, .7);
  z-index:1;

}

.navItem{
  position:relative;
  height:25%;
  width:100%;
  text-align:center;
  color:white;
  font-size:10pt;
  padding-top:35%;
  box-sizing:border-box;
  font-weight:bold;
  cursor:pointer;
  border-bottom:#ab739d 2px solid;
  transition:background .5s;
}


.navItem:hover, .active{
  background:rgba(0,0,0,.2);
}

.navItem:last-child{
  border-bottom:0px solid;
}
.txtShadow{
  text-shadow: 1px 1px 1px rgba(0,0,0,.4);
  filter: dropshadow(color=#000000, offx=1, offy=1);
}

.controlIcon{
  
  height:24px;
}

.navIcon{
  
  height:32px;
}
            
          
!
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