Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
87 lines (72 loc) · 1.28 KB
/
Copy pathstyle.css
File metadata and controls
87 lines (72 loc) · 1.28 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
body{
background-color: black;
color: white;
font-family: Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
}
h1{
text-align: center;
font-family: Arial, Helvetica, sans-serif;
color: rgb(255, 255, 255);
font-size: 2em;
margin-top: 20px;
}
img{
width: 100%;
height: auto;
display: block;
margin: 0;
}
a{
text-decoration: none;
color: white;
}
a:hover{
font-weight: bold;
}
.cards{
width: 100%;
height: auto;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
}
/*
here we define the styling for the container
that holds title text and image.
in css classes are precede by a "."
so if in html you have an element with
class="card" its css counterpart
will be defined with .card
*/
.card{
width: 300px;
/* height: 400px; */
height: auto;
background-color: black;
/* font */
font-family: Arial, Helvetica, sans-serif;
color: white;
display: flex;
flex-direction: column;
align-items: center;
}
/*
to get to the child elements of a class
you can reference to them in css by using the
name of the class and follow it with the tag
you want to address with the styling.
*/
.card img{
width: 100%;
height: auto;
}
.card p{
padding: 10px;
}
.big{
width: 600px;
background-color: red;
}