Profile cover

This bootstrap snippet called "Profile cover" was created to help web designers,
front-end developers and back-end developer save time. Use it in your project and build your app faster,
You can also download the HTML, CSS, and JS code
tags: bootstrap,snippet,profile,cover,user

This is the HTML code for this bootstrap snippet

Copy, paste, change, customize and run the following HTML code to get a result like the one shown in the preview tab

<div class="container bootstrap snippet">
    <div class="col-md-10">
        <div class="profile-display">
            <div class="profile-cover"></div> 
            <div class="author-info">
		        <div class="author-info-img" >
		        </div>
		        <div class="author-meta">
			        <h2 class="author-username">
			        	Deyson
			        </h2>
		        </div>
	        </div>
        </div>
    </div>
</div> 

This is the CSS code for this bootstrap snippet

Copy, paste, change, customize and run the following CSS code to get a result Like the one shown in the preview

.profile-cover {
    background-image: url(http://bootdey.com/img/Content/bg_element.jpg);
}

.author-info-img {
	 background-image: url(http://bootdey.com/img/Content/user_6.jpg);
}	
                        
.profile-display {
    width: 100%;
    position: relative;
    box-shadow: 0 1px 12px rgba(0,0,0,0.1);
    height: 340px;
    background-color: #fff;
}
.profile-cover {
    height: 210px;
    position: absolute;
    top: 0px;
    right: 0px;
    left: 0px;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: center center;
}

.author-info {
    background-color: #f5f5f5;
    padding: 10px;
    position: absolute;
    top: 40px;
    left: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 240px;
}
.author-info .author-info-img {
    width: 100%;
    height: 220px;
    width: 220px;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: center center;
    margin-bottom: 3px;
    position: relative;
}

.author-meta {
    display: inline-block;
    vertical-align: bottom;
}

.author-username {
    font-size: 26px;
    margin: 5px 0 0 0;
}

                                    

Information about this bootstrap snippet

Creator: Dey Dey

Bootstrap version: 3.2.0

Created: Aug 13th 2014, 15:18

Views: 4.3K

Rated 5/5 based on 2 reviews