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="row bootstrap snippets">
<div class="col-md-6 col-md-offset-2 col-sm-12">
<div class="comment-wrapper">
<div class="panel panel-info">
<div class="panel-heading">
Comment panel
</div>
<div class="panel-body">
<textarea class="form-control" placeholder="write a comment..." rows="3"></textarea>
<br>
<button type="button" class="btn btn-info pull-right">Post</button>
<div class="clearfix"></div>
<hr>
<ul class="media-list">
<li class="media">
<a href="#" class="pull-left">
<img src="https://bootdey.com/img/Content/user_1.jpg" alt="" class="img-circle">
</a>
<div class="media-body">
<span class="text-muted pull-right">
<small class="text-muted">30 min ago</small>
</span>
<strong class="text-success">@MartinoMont</strong>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, <a href="#">#consecteturadipiscing </a>.
</p>
</div>
</li>
<li class="media">
<a href="#" class="pull-left">
<img src="https://bootdey.com/img/Content/user_2.jpg" alt="" class="img-circle">
</a>
<div class="media-body">
<span class="text-muted pull-right">
<small class="text-muted">30 min ago</small>
</span>
<strong class="text-success">@LaurenceCorreil</strong>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor <a href="#">#ipsumdolor </a>adipiscing elit.
</p>
</div>
</li>
<li class="media">
<a href="#" class="pull-left">
<img src="https://bootdey.com/img/Content/user_3.jpg" alt="" class="img-circle">
</a>
<div class="media-body">
<span class="text-muted pull-right">
<small class="text-muted">30 min ago</small>
</span>
<strong class="text-success">@JohnNida</strong>
<p>
Lorem ipsum dolor <a href="#">#sitamet</a> sit amet, consectetur adipiscing elit.
</p>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
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
body{margin-top:20px;}
.comment-wrapper .panel-body {
max-height:650px;
overflow:auto;
}
.comment-wrapper .media-list .media img {
width:64px;
height:64px;
border:2px solid #e5e7e8;
}
.comment-wrapper .media-list .media {
border-bottom:1px dashed #efefef;
margin-bottom:25px;
}
Information about this bootstrap snippet
Creator: Dey Dey
Bootstrap version: 3.3.4
Created: Jun 20th 2015, 07:33
Views: 2.7K