-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.css
More file actions
125 lines (111 loc) · 1.96 KB
/
example.css
File metadata and controls
125 lines (111 loc) · 1.96 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
html { font-family: 'Merriweather', serif;
background-color: #f1f3f2;}
a:link, a:visited { color:black; text-decoration: none; }
* { box-sizing: border-box; }
body { margin: 0; padding: 0; }
.container {
width: 960px;
margin: auto;
}
nav {
background-color: white;
height: 100px;
position: fixed;
z-index: 1;
width: 100%;
top:0px;
}
.nav-logo {
font-size: 30px;
float: left;
margin:0;
}
.nav-btn {
display: flex;
flex-direction: row;
justify-content:flex-end;
font-size: 20px;
font-weight: bold;
list-style-type: none;
margin: 40px;
}
ul.nav-btn > li {
margin-top: 8px;
margin-left: 10px;
}
nav::after{ content:""; display: block; clear: both;}
/* header */
.hdr {
position:relative;
height: 320px;
text-align: center;
}
.hdr-title {
color: black;
font-size: 50px;
font-weight: bold;
margin-top: 0px;
margin-bottom: 30px;
padding-top: 140px;
}
.hdr-content {
font-size: 30px;
color: black;
}
.hdr::before{
content:"";
display: block;
position: absolute;
/* 나중에 container 만 relative로 바꿀거임 */
left: 0;
top: 0;
width: 100%;
height: 100%;
opacity: 0.3;
/* 투명도 */
background-image: url(./background.jpg);
background-size:cover;
background-position: top;
background-repeat: no-repeat;
}
.hd .container {
position:relative;
color: black;
}
.sec {
text-align: center;
padding: 75px 0;
}
.sec .container {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
flex-direction: row;
}
p1:hover{
text-decoration: underline;
}
.imgs:hover{
opacity:70%;
}
.sec article{
margin-bottom: 30px;
}
.sec article img{
width: 100%;
height: 100%;
}
.imgs{
object-fit: cover;
width: 275px;
height: 275px;
}
.sec::after{
content: " ";
display: block;
clear: both;
}
.footer {
padding: 15px;
text-align: center;
}