Bootstrap snippet and html example. circle photo with div change color

Bootstrap 3.3.4 snippet "circle photo with div change color" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: user,photo

HTML code

Clean, semantic HTML that powers this Bootstrap 3.3.4 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.

<div class="container">
	<div class="row">
	    <div class="col-md-4 col-sm-6 col-xs-12">
	        <div class="user-item">
	            <img src="https://bootdey.com/img/Content/avatar/avatar7.png" class="img-circle img-responsive img-user" alt="">
	            <div>
	                <strong>Alexandra Human </strong>
	                <small>Web Developer</small>
	                <p>
	                    Curabitur nec nisl odio. Mauris vehicula at nunc id posuere.
	                </p>
	            </div>
	        </div>
	    </div>
	    <div class="col-md-4 col-sm-6 col-xs-12">
	        <div class="user-item">
	            <img src="https://bootdey.com/img/Content/avatar/avatar6.png" class="img-circle img-responsive img-user" alt="">
	            <div>
	                <strong>Martin Caricature </strong>
	                <small>Web Developer</small>
	                <p>
	                    Curabitur nec nisl odio. Mauris vehicula at nunc id posuere.
	                </p>
	            </div>
	        </div>
	    </div>
	</div>
</div>

CSS code

Scoped CSS that styles the component. Paste it after Bootstrap 3.3.4 to keep the design, spacing, and responsiveness consistent.

body{
    margin-top:20px;
background:#ddd;
}

.user-item {
    font-family: Verdana;
    position: relative;
    width: 100%;
    cursor: pointer;
}

.user-item > img {
    width: 100%;
}

.user-item > div small {
    display: block;
    color: #fff;
    padding-top: 10px;
}

.user-item > div p {
    color: #fff;
    padding-top: 10px;
    line-height: 16px;
    font-size: 12px;
}

.user-item > div {
    background: #5bc0de;
    bottom: -50px;
    line-height: 16px;
    padding: 15px 0;
    position: absolute;
    text-align: center;
    width: 100%;
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -ms-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    padding: 20px;
}

.user-item:hover > div {
    background: #5cb85c;
    bottom: -75px;
    color: #000000;
}

.img-user {
  padding: 4px;
  line-height: 1.42857143;
  background-color: #fff;
  border: 1px solid #ddd;
}

Similar snippets

Bootstrap example and template. bs4 profile settings page

bs4 profile settings page

Bootstrap example and template. bs4 profile card

bs4 profile card

Bootstrap example and template. Update user profile

Update user profile

Bootstrap example and template. gray profile

gray profile

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. Chat box

Chat box

Bootstrap example and template. Social Profile widget with photos

Social Profile widget with photos

Bootstrap example and template. Update user profile

Update user profile

FAQ

How do I use this snippet?

Include Bootstrap 3.3.4, paste the HTML, add the CSS block, and include the JS (if any) to mirror the live preview.

Can I use it in commercial projects?

Yes. It’s free for personal and commercial work; check the snippets license for details.

Is it responsive?

Yes. It inherits the responsive grid and components from Bootstrap 3.3.4.

Bootstrap example and template. circle photo with div change color

About this bootstrap example/template

Optimized for copy‑paste: clean HTML, scoped CSS, and minimal JS so you can ship production‑ready UI faster and keep designs consistent.

Mobile‑first and responsive by default. Tested across modern browsers to reduce polish time on your project.

Already trusted in 6.8K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 3.3.4

<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css'>

<script src='https://netdna.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js'></script>

This code example is based on bootstrap 3.3.4 and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working