-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnewsLine.css
More file actions
69 lines (59 loc) · 1.31 KB
/
newsLine.css
File metadata and controls
69 lines (59 loc) · 1.31 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
.newsLine {
height: 732px;
}
.container2 {
display: grid;
grid-template-columns: repeat(4, 276px);
grid-template-rows: 50px repeat(2, 307px);
column-gap: 32px;
row-gap: 30px;
position: absolute;
left: 50%;
transform: translateX(-50%);
margin-top: 50px;
}
.notice {
font-weight: bold;
font-size: 25px;
grid-column-start: 1;
grid-column-end: 5;
}
.notice2 {
font-weight: normal;
font-size: 15px;
}
.item2 {
font-weight: bold;
font-size: 17.5px;
overflow: hidden;
}
/* overflow: hidden을 통해 확대되었을 때 밖으로 나오는 이미지를 제거해줌 */
.item2 img {
width: 276px;
height: 160px;
transition: 0.3s;
opacity: 1;
cursor: pointer;
}
.item2:hover img {
transform: scale(1.03);
opacity: 0.7;
}
/* opacity = 불투명도라는 뜻으로 1이면 원상태 낮아질수록 흐려진다. */
/* transform: scale(2) 2배 확대 여기서는 마우스 오버 시 1.03배 확대 지연시간 0.3초 */
.news {
font-weight: 20;
font-size: 13px;
color: red;
padding-top: 10px;
padding-bottom: 10px;
}
.info {
font-size: 13px;
font-weight: 10;
}
.main_banner img {
width: 100%;
margin-top: 140px;
cursor: pointer;
}