"simple chat"
Bootstrap 3.0.0 Snippet by kai42

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<div class="container">
<div class="row">
<div class="col-sm-4">
<div class="panel panel-primary">
<div class="panel-heading top-bar">
<div class="col-md-8 col-xs-8">
<h3 class="panel-title"><span class="glyphicon glyphicon-book"></span> Contacts</h3>
</div>
</div>
<table class="table table-striped table-hover">
<tbody>
<tr>
<td>1</td>
<td>Masha</td>
</tr>
<tr>
<td>2</td>
<td>Vasya</td>
</tr>
<tr>
<td>3</td>
<td>Inna</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-sm-8">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.chatperson{
display: block;
border-bottom: 1px solid #eee;
width: 100%;
display: flex;
align-items: center;
white-space: nowrap;
overflow: hidden;
margin-bottom: 15px;
padding: 4px;
}
.chatperson:hover{
text-decoration: none;
border-bottom: 1px solid orange;
}
.namechat {
display: inline-block;
vertical-align: middle;
}
.chatperson .chatimg img{
width: 40px;
height: 40px;
background-image: url('http://i.imgur.com/JqEuJ6t.png');
}
.chatperson .pname{
font-size: 18px;
padding-left: 5px;
}
.chatperson .lastmsg{
font-size: 12px;
padding-left: 5px;
color: #ccc;
}
body{
height:400px;
position: fixed;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: