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

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 class="block">
  <div class="user">
    <img src="https://lh3.googleusercontent.com/-7jdZCLeEaho/AAAAAAAAAAI/AAAAAAAAZIw/GMkOu6gF6SA/s120-c/photo.jpg" class="avatar" alt="" />

    <div class="usr-info">
      <div class="rHa"><div class="Yia"><div class="gZa"><div class="rna KXa Xia" guidedhelpid="profile_name">Paul Irish</div></div><div class="EXa Plb"></div></div><div class="Yia Frc VQc"><div class="Nyb"><div class="Ny"><span class="J9a">Works at </span><span class="K9a">Google Chrome</span></div><div class="wyb FVb"><div class="Ny"><span class="J9a">Lives in </span><span class="K9a">San Francisco</span></div></div></div></div></div>
    
      <div class="circle-button">
        <div><span class="icon">&#9675;</span> <span class="icon-txt">2 circles</span></div>
      </div>

      <div class="followers">55,467 have him in circles</div>
    </div>
  </div>

  <div class="nav">
    <div><span class="wrap"><a href="#">About</a><b>•</b><a href="#" class="current-nav">Posts</a><b>•</b><a href="#">Photos</a><b>•</b><a href="#">YouTube</a><b>•</b><a href="#">+1's</a><b>•</b><a href="#">Reviews</a></span></div>
  </div>
</div>
            
          
!
            
              @import "compass/css3";

* {
  @include box-sizing(border-box);
}

html {
  background: #E5E5E5;
}

.block {
  height: 368px;
  margin: 0 auto;
  width: 652px;
  background: url(https://lh4.googleusercontent.com/-MpYP8v5LFYk/UpwkFj09NjI/AAAAAAAAgv4/A4aegtvObzs/s652-fcrop64=1,169d09e6febdce7e/IMG_1272.jpg) top right no-repeat;
  background-size: cover;
}

.user {
  height: 100%;
  width: 280px;
  position: relative;
  text-align: center;
  z-index: 1;
  
  &:before {
    content: "";
    display: block;
    -webkit-filter: blur(4px);
    -moz-filter: blur(4px);
    filter: blur(4px);
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: -1;
    
    // See comment in JS Panel
    .cssreflections & {
      background: url(https://lh4.googleusercontent.com/-MpYP8v5LFYk/UpwkFj09NjI/AAAAAAAAgv4/A4aegtvObzs/s652-fcrop64=1,169d09e6febdce7e/IMG_1272.jpg)  0 0 no-repeat;
      background-size: cover;
    }
    .no-cssreflections & {
      background: rgba(0,0,0,0.6);
    }
  }
}

.avatar {
  border-radius: 80%;
  margin-top: 20px;
}

.circle-button {
  box-shadow: 0 2px 0px rgba(0,0,0,0.25);
  @include transition(.3s all ease-in-out);
  border-radius: 4px;
  display: table;
  height: 42px;
  margin: 0 auto;
  width: 100px;
  vertical-align: middle;
  font-size: 14px;
  font-weight: 300;
  background: #DC4836;
  color: white;

  &:hover {
    box-shadow: inset 0 0 0 2px white;
    cursor: pointer;
    background: scale-lightness(#DC4836, 5%);
  }

  > div {
    display: table-cell;
    vertical-align: middle;
  }
}

.usr-info {
  margin-top: 20px;
  font-weight: 300;
}

.icon {
  font-size: 18px;
}

.Yia {
  margin-bottom: 15px;
}

.Xia {
  font-size: 20px;
  color: white;
}

.Ny,
.followers {
  font-size: 12px;
  color: white;
}

.followers {
  margin-top: 16px;
}

.nav {
  display: table;
  height: 45px;
  width: 100%;
  text-align: center;
  background: #DC4836;

  > div {
    display: table-cell;
    vertical-align: middle;
  }

  // Nav Links
  a {
    vertical-align: bottom;
    margin: 0 6px;
    text-decoration: none;
    color: white;
    padding-bottom: 12px;

    &:hover {
      border-bottom: 4px solid white;
    } 
  }

  // Dots Between Nav Links
  b {
    color: scale-lightness(#DC4836, -40%);
  }
}

// Current Nav Link Styles
.current-nav {
  border-bottom: 4px solid white;
}
            
          
!
            
              // Fallback for browsers not supporting blur filter 
// would be a black background with transparency
// using css filter detection via Modernizr instead
// of using the cssreflections class.
//
// https://modernizr.com/docs
// http://stackoverflow.com/questions/16150423/modernizr-check-for-grayscale-filters-ie-10
            
          
!
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