chat.css
1.54 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/* 메인 */
.body{
background-color: #B2C7D9;
}
#main {
background-color: #B2C7D9;
text-align: center;
width: 500px;
height: 800px;
}
/* 채팅 영역 */
#chat {
height: 90%;
width: 100%;
padding-top: 10px;
overflow-y: auto;
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
#chat::-webkit-scrollbar {
display: none; /* Chrome, Safari, Opera*/
}
/* 접속 알림 */
.connect {
width: 90%;
margin-left: 5%;
margin-right: 5%;
margin-bottom: 10px;
background-color: #A9BDCE;
text-align: center;
clear:both;
float:center;
}
/* 접속 종료 알림 */
.disconnect {
width: 90%;
margin-left: 5%;
margin-right: 5%;
margin-bottom: 10px;
background-color: #A9BDCE;
text-align: center;
clear:both;
float:center;
}
/* 내가 보낸 메시지 */
.me {
background-color: #FFEB33;
border-radius: 5px;
margin-bottom: 10px;
margin-left: 30%;
margin-right: 5%;
padding: 3px;
padding-left: 10px;
padding-right: 10px;
text-align: right;
clear:both;
float:right;
word-break: break-all
}
/* 상대방이 보낸 메시지 */
.other {
background-color:#FFFFFF;
border-radius: 5px;
margin-bottom: 10px;
margin-left: 5%;
margin-right: 30%;
padding: 3px;
padding-left: 10px;
padding-right: 10px;
text-align: left;
clear:both;
float:left;
}
#input{
width: 90%;
margin-left: 5%;
margin-right: 5%;
}