-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmine.css
99 lines (78 loc) · 1.54 KB
/
mine.css
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
86
87
88
89
90
91
92
93
94
95
* {
box-sizing: border-box; /*내용+패딩+보더 크기계산*/
margin: 0;
padding: 0;
}
html {
background: url("background_img.jpg") no-repeat; /*배경반복여부*/
background-size: cover;
}
.nav-wrapper {
padding: 20px; /*요소의 외부여백공간*/
display: flex; /*너비만큼 가로방향 배치*/
justify-content: flex-end; /*아이템 오른쪽 정렬*/
align-items: center; /*수직방향에서 가운데 정렬*/
}
ul {
display: flex;
list-style-type: none;
}
.nav li {
padding: 0 15px;
}
.nav li a {
text-decoration: none;
}
.nav li a:link {
color: white;
}
.nav li a:hover {
color: skyblue;
}
.logo {
margin-right: auto;
}
.main-text {
text-align: center;
padding: 100px;
color: white;
}
.card {
width: 300px;
background-color: white;
overflow: hidden; /*넘치는부분 보여주지않음*/
border-radius: 10px;
box-shadow: 0px 2px 20px pink; /*그림자*/
margin: 30px;
transition: 0.3s;
position: relative;
}
.card-banner img {
width: 100%;
height: 230px;
object-fit: cover; /*비율유지하며 공간 꽉채움*/
position: absolute;
}
.card-wrapper {
display: flex;
flex-wrap: wrap; /*아래줄바꿈*/
justify-content: center;
}
.card-body {
margin: 240px 15px 15px;
}
.hashtag {
font-size: 12px;
color: cornflowerblue;
}
.title {
font-weight: 800;
font-size: 20px;
margin-bottom: 5px;
}
.desc {
font-size: 15px;
}
.card:hover {
transform: translateY(-10px);
}