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
105 lines (89 loc) · 1.73 KB
/
Copy pathstyle.css
File metadata and controls
105 lines (89 loc) · 1.73 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
/**
* 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.
*
*/
* {
box-sizing: border-box;
}
body {
font-family: Arial;
padding: 5px;
background: #716a94;
}
.header {
text-align: center;
font-family: 'Times New Roman', Times, serif;
color: cornsilk;
font-size: 30px;
}
/* Style the top navigation bar*/
.nav-bar {
width: 100%;
font-size: 30px;
padding: 5px;
}
/* Remove underline on nav-link*/
a {
text-decoration: none;
color: black;
}
/* Change color on hover */
.nav-bar a:hover {
background: #5d5583;
color: rgba(235, 229, 231, 0.863)
}
/*left column of page*/
.left-side {
float: left;
width: 75%;
}
/*Right column of page*/
.right-side {
float: left;
width: 25%;
padding-left: 20px;
text-align: justify;
}
/*style article section*/
.article {
background-color: rgb(192, 178, 174);
padding: 20px;
margin-top: 20px;
}
/*use pseudo-class style on first article*/
.article:first-child {
background-color: rgb(180, 209, 75);
}
/*style right column section*/
.aside {
background-color: rgb(126, 219, 90);
padding: 20px;
margin-top: 20px;
}
.aside > h3{
text-align: center;
}
/* clear floats after the columns */
main:after {
content: "";
display: table;
clear: both;
}
img {
max-width: 100%;
height: 165px;
margin-left: auto;
margin-right: auto;
display: block;
}
footer {
text-align: center;
background-color: rgb(78, 141, 141);
color: white;
padding: 5px;
margin-top: 20px;
}