cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-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.

            
              <!doctype html>
<html>
<head>
    <title>Codepen</title>
    <link href='https://fonts.googleapis.com/css?family=Pathway+Gothic+One' rel='stylesheet' type='text/css'>
</head>
<body>
            <div class="container">
                <div class="navigation" style="display: none;">
                    <ul class="nav">
                        <li><a href="#">Add Friend</a></li>
                        <li><a href="#">Follow</a></li>
                        <li><a href="#">Message</a></li>
                    </ul>
                </div>
                <div class="cover">
                    <div class="head">
                        <div class="menu left"></div>
                        <div class="actions right">
                            <a class="btn success" href="#">Following</a>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="avatar">
                        <img src="https://dl.dropboxusercontent.com/s/yyd1fcw7dvtfa1q/avatar-colored.jpg" width="100" />
                        <div class="light">
                        </div>
                    </div>
                </div>

                <div class="main">
                    <h1>Anis Mashku</h1>
                    <h6><span>@</span>anismashku</h6>
                    <p>Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. At vero eos et accusam et justo duo dolores.</p>
                </div>
                <div class="social">
                    <ul>
                        <li><a class="linkedin" href="#"></a></li>
                        <li><a class="twitter" href="#"></a></li>
                        <li><a class="facebook" href="#"></a></li>
                        <li><a class="dribbble" href="#"></a></li>
                    </ul>
                </div>
            </div>
</body>
</html>
            
          
!
            
              
body {
    font: 12px "Helvetica";
    background: url('https://dl.dropboxusercontent.com/s/rjnjpcw76egzs08/wood.png');
}
.left { float: left; }
.right { float: right; }
.clear { clear: both; }

.container {
    width: 320px;
    background: #eeeeee;
    overflow: hidden;
    height: 435px;
    margin: 50px auto;
    position: relative;
  -webkit-box-shadow: 0px 5px 10px -5px rgba(0, 0, 0, 0.5);
-moz-box-shadow:    0px 5px 10px -5px rgba(0, 0, 0, 0.5);
box-shadow:         0px 5px 10px -5px rgba(0, 0, 0, 0.5);
}
.navigation {
    background: #3E4858;
}
.navigation ul li {
    border-bottom: 1px solid #323846;
    border-top: 1px solid #515e72;
}
.navigation ul li a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 10px;
    overflow: hidden;
    font: 17px 'Pathway Gothic One', sans-serif;
}
.cover {
    background: url('https://dl.dropboxusercontent.com/s/b9zehob0bif4zr0/newyork.jpg') no-repeat center;
    height: 180px;
    border-bottom: 5px solid #ffffff;
    position: relative;
    -webkit-box-shadow: 0px 5px 5px -5px rgba(50, 50, 50, 0.3);
    -moz-box-shadow:    0px 5px 5px -5px rgba(50, 50, 50, 0.3);
    box-shadow:         0px 5px 5px -5px rgba(50, 50, 50, 0.3);
}
.cover .head {
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.cover .head .menu {
    background: url('https://dl.dropboxusercontent.com/s/zgj5vdngzkemvpe/list-icon.png') no-repeat center;
    height: 32px;
    width: 35px;
    position: relative;
    cursor: pointer;
    opacity: 0.7;
    -webkit-transition: 0.25s;
    -moz-transition: 0.25s;
    -o-transition: 0.25s;
    transition: 0.25s;
}
.cover .head .menu.active,
.cover .head .menu:hover {
    opacity: 1;
}
.cover .avatar {
    position: absolute;
    background: #000;
    border: 5px solid #ffffff;
    cursor:pointer;
    top: 125px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    overflow: hidden;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    -webkit-box-shadow: 0px 5px 5px -5px rgba(50, 50, 50, 0.3);
    -moz-box-shadow:    0px 5px 5px -5px rgba(50, 50, 50, 0.3);
    box-shadow:         0px 5px 5px -5px rgba(50, 50, 50, 0.3);
}
.cover .avatar .light {
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMCIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,0)));
    background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
    background: -o-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
    background: -ms-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
    background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=0 );
    top: -65px;
    width: 100px;
    height: 120px;
    position: absolute;
    left: 15px;
    transform:rotate(-30deg);
    -ms-transform:rotate(-30deg); /* IE 9 */
    -webkit-transform:rotate(-30deg); /* Safari and Chrome */
}

.main {
    padding: 60px 10px 10px;
    text-align: center;
}
.main h1 {
    font-weight: bold;
    text-shadow: 0 -1px 0 #888888;
    color: #cecece;
    font-size: 30px;
    margin-bottom: -3px;
}
.main h6 {
    font: italic 16px "NotoSans";
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.main p {
    font: 14px/18px "Arial";
}
.social {
    margin: 10px 0 20px;
    text-align: center;
}
.social ul li {
    display: inline;
}
.social ul li a {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-left: 10px;
    transition: all .5s;
    -moz-transition: all .5s; /* Firefox 4 */
    -webkit-transition: all .5s; /* Safari and Chrome */
    -o-transition: all .5s; /* Opera */
}
.social ul li a.linkedin {
    background: #39C url("http://migkapa.com/site/lab/css3hover/images/linked-icon.png") no-repeat center;
}
.social ul li a.twitter {
    background: #019AD2 url("http://migkapa.com/site/lab/css3hover/images/twitter-icon.png") no-repeat center;
}
.social ul li a.facebook {
    background: #3B5998 url("http://migkapa.com/site/lab/css3hover/images/facebook-icon.png") no-repeat center;
}
.social ul li a.dribbble {
    background: #EA4C89 url("http://migkapa.com/site/lab/css3hover/images/dribble-icon.png") no-repeat center;
}
.social ul li a:hover {
    transform:rotate(360deg);
    -ms-transform:rotate(360deg); /* IE 9 */
    -moz-transform:rotate(360deg); /* Firefox */
    -webkit-transform:rotate(360deg); /* Safari and Chrome */
    -o-transform:rotate(360deg); /* Opera */
}

.btn {
    border: none;
    background: #bdc3c7;
    color: #ffffff;
    padding: 7px 0 6px;
    line-height: 22px;
    text-decoration: none;
    text-shadow: none;
    width: 100px;
    display: inline-block;
    text-align: center;
    -webkit-transition: 0.25s;
    -moz-transition: 0.25s;
    -o-transition: 0.25s;
    transition: 0.25s;
}
.btn.success {
    background-color: rgba(88, 214, 141, 0.7);
}
.btn.danger {
    background-color: rgba(236, 112, 99, 0.8);
}
            
          
!
            
              
        $(document).ready(function(){
            $('.menu').click(function(){
                $(this).toggleClass('active');
                $(this).parents('.container').find('.navigation').slideToggle('fast');
            });
            $('.actions').hover(
                function(){
                    $(this).find('.btn').removeClass('success').addClass('danger').text('Unfollow');
                },
                function(){
                    $(this).find('.btn').removeClass('danger').addClass('success').text('Following');
                }
            );
        });
            
          
!
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