forked from CodeYourFuture/HTML-CSS-Coursework-Week1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
94 lines (86 loc) · 1.66 KB
/
Copy pathstyle.css
File metadata and controls
94 lines (86 loc) · 1.66 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
/**
* 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.
*
*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/*style for navigation bar*/
#nav-bar{
position: fixed;
top: 0;
height: 8rem;
display: flex;
background-color: rgb(188, 160, 188);
width: 100%;
font-size: 2rem;
}
/* header logo style */
#nav-bar img{
border: 3px solid rgb(236, 140, 136);
border-radius: 5%;
width: 10%;
}
/* style for navigation links in header and footer */
.nav-link > ul{
display:flex;
width: 70vw;
margin-top: 2.5rem;
justify-content: space-around;
}
nav a:link{
text-decoration:none;
}
nav a:hover{
color:rgb(7, 141, 7) ;
}
li{
list-style: none;
}
/* body style */
body{
position: relative;
top: 10rem;
background-color: rgb(89, 131, 129);
color: rgb(39, 38, 38);
}
/* styling section and article elements */
.width-control{
width: 75%;
margin: 5rem 10rem;
padding: 3rem;
font-size: 1.1em;
border-radius: 1%;
background-color: rgb(0, 95, 163);
}
article img{
width: 100%;
border-radius: 1%;
}
/* link color in article elements */
article a {
color: rgb(201, 139, 139);
}
/* text color for section and article elements */
.text-color{
color: rgb(187, 183, 183);
}
main article:first-child{
background-color: rgb(0, 107, 143);
color: rgb(212, 205, 205);
font-size: 1.2em;
}
/* footer syle */
footer{
display: flex;
background-color: rgb(249, 201, 139);
}
address{
text-align: center;
}