forked from CodeYourFuture/HTML-CSS-Coursework-Week1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
94 lines (76 loc) · 1.58 KB
/
style.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
/**
* Add your custom styles below
*
* Remember:
* - Be organised, use comments and separate your styles into meaningful chunks
* for example: General styles, Navigation styles, Hero styles, Footer etc.
*
*/
@import url('https://fonts.googleapis.com/css2?family=Secular+One&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
font-family: 'Secular One', sans-serif;
background-color: rgb(231, 248, 247);
}
.center-container{
margin: auto;
}
div{
width: 80%;
background-color: #fff;
padding: 3em;
box-shadow: 0 0 2.2em rgb(231, 240, 240);
}
header{
text-align: center;
}
header ul{
margin-top: 1.5em;
}
header li{
list-style-type: none;
display:inline-block ;
font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
font-size: 2rem;
margin-right: 2em;
}
header li:last-child{ margin-right: 0;}
header a{
text-decoration: none;color: rgb(3, 96, 158);
padding: .09em;
}
main{
margin: top 5em; ;
}
article{
width: 95%;
}
article img{
width: 50%;
float: right;
margin: 1 1 5em 2em;
box-shadow: 5px 5px 1px rgba(0, 0, 0, .40);
}
p{
font-size: 1.5em;
line-height: 160%;
margin-bottom: 1em;
}
h2{
font-size: 4.5rem;
margin-bottom: 0.72em;
margin-top: 0.6em;
font-family: inherit;
color: rgb(3, 96, 158);
text-align: center;
}
hr{
width: 85%;
margin: 4em auto;
border: 1.5 solid rgb(2, 39, 63);
box-shadow: 0px 1px 6px rgb(2, 39, 63);
}