cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

EFvgx

A Pen By Captain Anonymous

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.

            
              <body>
  <article>
    <div class="card-header">
      <img class="profile-photo" src="https://lh6.googleusercontent.com/-WSGQCuiLcOU/UvNgV_tU-MI/AAAAAAAABKE/lqPgyR9moRg/w346-h260/2012-11-14+10.44.18.jpg">
      <a href="#"><button type="button">Follow</button></a>
    </div>
    <ul class="card-links">
      <a href="#">
        <li>
          <i class="icon icon-user"></i><span class="label">Profile</span>
        </li>
      </a>
      <hr>
      <a href="#">
        <li class="active">
          <i class="icon icon-list-alt"></i><span class="label">Activity</span><span class="label-notification label-active">44</span>
        </li>
      </a>
      <hr>
      <a href="#">
        <li>
          <i class="icon icon-time"></i><span class="label">Timeline</span>
        </li>
      </a>
      <hr>
      <a href="#">
        <li>
          <i class="icon icon-file-text-alt"></i><span class="label">Files</span><span class="label-notification">12</span>
        </li>
      </a>
      <hr>
      <a href="#">
        <li class="link-favorites">
          <i class="icon icon-heart"></i><span class="label">Favorites</span><span class="label-notification">174</span>
        </li>
      </a>
    </ul>
  </article>
 
</body>
            
          
!
            
              body {
  background: #d7d9d9;
  width: 100%;
  margin: 60px 0;
  font-size: 14px;
  font-family: Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

p {
  text-align: center;
  color: #8f9496;
}

article {
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 4px;
  width: 140px;
  margin: 0 auto 40px auto;
  -webkit-box-shadow: 0px 0px 16px rgba(50, 50, 50, 0.24);
}

.card-header {
  padding: 4px;
  background: #eee;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-bottom: 1px solid #ccc;
}

.card-header button {
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  background: #3498db;
  border: none;
  color: #fff;
  border-radius: 4px;
  padding: 8px;
  -webkit-font-smoothing: antialiased;
}

.card-header button:hover {
  background: #51a7e0;
}

.card-header img {
  width: 132px;
  border-radius: 2px;
}

.card-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card-links hr {
  border-bottom: 0;
  border-top: 1px solid #ddd;
  margin: 0;
}

.card-links a {
  text-decoration: none;
  color: #a1a5a8;
}

.card-links a li {
  margin: 0;
  padding: 14px 6px;
  border-left: 4px solid #fff;
  transition: background-color 0.2s ease,
              border-left 0.2s ease,
              color 0.2s ease;
}

.card-links a li:hover {
  border-left: 4px solid #3498db;
  background: #f6f6f6;
  color: #44474a;
}

.card-links a li.active {
  border-left: 4px solid #e74c3c !important;
  background: #f6f6f6;
  color: #44474a;
}

.card-links a li i {
  position: absolute;
  margin-left: 4px;  
}

.link-favorites {
  border-bottom-left-radius: 4px;
}

.label {
  position: relative;
  left: 26px;
  top: -1px;
  font-size: 12px;
}

.label-notification {
  float: right;
  font-size: 10px;
  color: #8f9496;
  background: #eceded ;
  padding: 4px;
  border-radius: 4px;
  margin: -2px 4px 0 0;
  transition: background-color 0.2s ease,
              color 0.2s ease;
}

.card-links a li:hover .label-notification,
.label-active {
  color: #44474a;
  background: #d7d9d9;
}
            
          
!
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