bootstrap snippet Messages


/ Published in: HTML
Save to your folder(s)

bootdey bootstrap code snippet messages
http://bootdey.com/


Copy this code and paste it in your HTML
  1. <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
  2. <div class="container">
  3. <div class="row">
  4. <a href="#" class="btn btn-info send-message-btn" role="button"><i class="fa fa-search"></i> Search</a>
  5. <a href="#" class="btn btn-info send-message-btn" role="button"><i class="fa fa-gears"></i> Settings</a>
  6. </div>
  7. <div class="row">
  8. <div class="conversation-wrap col-md-3">
  9. <div class="media conversation">
  10. <a class="pull-left" href="#">
  11. <img class="media-object img-circle" style="width: 50px; height: 50px;" src="http://bootdey.com/img/Content/user_2.jpg">
  12. </a>
  13. <div class="media-body">
  14. <h5 class="media-heading">Michael clarkt</h5>
  15. <small class="text-muted">Lorem ipsum dolor...</small>
  16. </div>
  17. </div>
  18.  
  19. <div class="media conversation">
  20. <a class="pull-left" href="#">
  21. <img class="media-object img-circle" style="width: 50px; height: 50px;" src="http://bootdey.com/img/Content/user_1.jpg">
  22. </a>
  23. <div class="media-body">
  24. <h5 class="media-heading">Pauline mothg</h5>
  25. <small class="text-muted">Cras commodo...</small>
  26. </div>
  27. </div>
  28.  
  29. <div class="media conversation">
  30. <a class="pull-left" href="#">
  31. <img class="media-object img-circle" style="width: 50px; height: 50px;" src="http://bootdey.com/img/Content/user_3.jpg">
  32. </a>
  33. <div class="media-body">
  34. <h5 class="media-heading">Manuel mcKlein</h5>
  35. <small class="text-muted">Cras sit amet...</small>
  36. </div>
  37. </div>
  38.  
  39. <div class="media conversation">
  40. <a class="pull-left" href="#">
  41. <img class="media-object img-circle" style="width: 50px; height: 50px;" src="http://bootdey.com/img/Content/User_for_snippets.png">
  42. </a>
  43. <div class="media-body">
  44. <h5 class="media-heading">Markt prame</h5>
  45. <small class="text-muted">Morbi felis...</small>
  46. </div>
  47. </div>
  48.  
  49. <div class="media conversation">
  50. <a class="pull-left" href="#">
  51. <img class="media-object img-circle"style="width: 50px; height: 50px;" src="http://bootdey.com/img/Content/user-453533-fdadfd.png">
  52. </a>
  53. <div class="media-body">
  54. <h5 class="media-heading">Bort snudert</h5>
  55. <small class="text-muted">Vivamus semper...</small>
  56. </div>
  57. </div>
  58.  
  59. <div class="media conversation">
  60. <a class="pull-left" href="#">
  61. <img class="media-object img-circle" style="width: 50px; height: 50px;" src="http://bootdey.com/img/Content/HexGames349.jpg">
  62. </a>
  63. <div class="media-body">
  64. <h5 class="media-heading">Maria monthg</h5>
  65. <small class="text-muted">cursus ac...</small>
  66. </div>
  67. </div>
  68. </div>
  69.  
  70.  
  71.  
  72. <div class="message-wrap col-md-8">
  73. <div class="msg-wrap">
  74. <div class="media msg ">
  75. <a class="pull-left" href="#">
  76. <img class="media-object img-circle" style="width: 32px; height: 32px;" src="http://bootdey.com/img/Content/user_2.jpg">
  77. </a>
  78. <div class="media-body">
  79. <small class="pull-right time"><i class="fa fa-clock-o"></i> 12:10am</small>
  80. <h5 class="media-heading">Pauline mothg</h5>
  81. <small class="col-md-10 text-muted">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam convallis, augue sed euismod varius, nisl metus vestibulum neque, nec dictum est dui et tellus</small>
  82. </div>
  83. </div>
  84. <div class="alert alert-info msg-date">
  85. <strong>Today</strong>
  86. </div>
  87. <div class="media msg">
  88. <a class="pull-left" href="#">
  89. <img class="media-object img-circle" style="width: 32px; height: 32px;" src="http://bootdey.com/img/Content/user_2.jpg">
  90. </a>
  91. <div class="media-body">
  92. <small class="pull-right time"><i class="fa fa-clock-o"></i> 12:10am</small>
  93. <h5 class="media-heading">Pauline mothg</h5>
  94. <small class="col-md-10 text-muted">Interdum et malesuada fames ac ante ipsum primis in faucibus. In at lacus ac velit vehicula elementum at a lorem. Nullam quis augue sodales, porttitor orci non"</small>
  95. </div>
  96. </div>
  97.  
  98. <div class="media msg">
  99. <a class="pull-left" href="#">
  100. <img class="media-object img-circle" data-src="holder.js/64x64" alt="64x64" style="width: 32px; height: 32px;" src="http://bootdey.com/img/Content/user_2.jpg">
  101. </a>
  102. <div class="media-body">
  103. <small class="pull-right time"><i class="fa fa-clock-o"></i> 12:10am</small>
  104. <h5 class="media-heading">Pauline mothg</h5>
  105. <small class="col-md-10 text-muted">consectetur dui. Quisque lacinia vitae lectus placerat dictum. Integer tristique sem a risus egestas, ac accumsan ligula volutpat. Donec at convallis elit"</small>
  106. </div>
  107. </div>
  108.  
  109. <div class="media msg">
  110. <a class="pull-left" href="#">
  111. <img class="media-object img-circle" style="width: 32px; height: 32px;" src="http://bootdey.com/img/Content/user_2.jpg">
  112. </a>
  113. <div class="media-body">
  114. <small class="pull-right time"><i class="fa fa-clock-o"></i> 12:10am</small>
  115. <h5 class="media-heading">Pauline mothg</h5>
  116. <small class="col-md-10 text-muted">Cras commodo ante sit amet nulla porta, sed feugiat lectus accumsan. Maecenas luctus est sed dignissim mattis. Mauris ullamcorper hendrerit est in pharetra text-muted"</small>
  117. </div>
  118. </div>
  119. </div>
  120.  
  121. <div class="send-wrap ">
  122. <textarea class="form-control send-message" rows="3" placeholder="Write a reply..."></textarea>
  123. </div>
  124. <div class="btn-panel">
  125. <button class="btn btn-success" role="button">
  126. <i class="fa fa-share"></i> Send Message
  127. </button>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132.  
  133.  
  134. .conversation-wrap{
  135. box-shadow: -2px 0 3px #ddd;
  136. padding:0;
  137. max-height: 400px;
  138. overflow: auto;
  139. }
  140.  
  141. .conversation{
  142. padding:5px;
  143. border-bottom:1px solid #ddd;
  144. margin:0;
  145.  
  146. }
  147.  
  148. .message-wrap{
  149. box-shadow: 0 0 3px #ddd;
  150. padding:0;
  151.  
  152. }
  153.  
  154. .msg{
  155. padding:5px;
  156. margin:0;
  157. }
  158.  
  159. .msg-wrap{
  160. padding:10px;
  161. max-height: 400px;
  162. overflow: auto;
  163. }
  164.  
  165. .time{
  166. color:#bfbfbf;
  167. }
  168.  
  169. .send-wrap{
  170. border-top: 1px solid #eee;
  171. border-bottom: 1px solid #eee;
  172. padding:10px;
  173. }
  174.  
  175. .send-message{
  176. resize: none;
  177. }
  178.  
  179. .highlight{
  180. background-color: #f7f7f9;
  181. border: 1px solid #e1e1e8;
  182. }
  183.  
  184. .send-message-btn{
  185. border-top-left-radius: 0;
  186. border-top-right-radius: 0;
  187. border-bottom-left-radius: 0;
  188.  
  189. border-bottom-right-radius: 0;
  190. }
  191.  
  192. .msg-wrap .media-heading{
  193. color:#003bb3;
  194. font-weight: 700;
  195. }
  196.  
  197. .msg-date{
  198. background: none;
  199. text-align: center;
  200. color:#aaa;
  201. border:none;
  202. box-shadow: none;
  203. border-bottom: 1px solid #ddd;
  204. }
  205.  

URL: http://bootdey.com/snippets/view/Messages-273

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.