-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
63 lines (59 loc) · 1.63 KB
/
styles.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
/* Centers, colours, sets the font, and underlines the header */
header {
text-align: center;
color: green;
font-size: 24px;
text-decoration: underline;
}
h2 { /* This heading is used for the two main grocery list types: Pantry Items & Freezer Items */
font-weight: bold;
text-align: center;
background-color: tan;
padding: 10px;
border: 1px solid;
text-align: center;
width: 55%;
}
h3 {/* This heading is used for grocery subcategories, such as 'Greens' and 'Snacks' */
font-weight: bold;
text-decoration: underline;
padding: 10px;
margin: 10px;
}
#canned, #dry-goods { /* First line of Item Lists, found under 'Pantry Items' */
position: relative;
background-color: lightgrey;
padding: 10px;
border: 1px solid #ccc;
margin: 10px;
width: 25%;
float: left;
}
#dry-goods{
margin-left: 25px;
}
#freezer-items{ /* Positions the 'Freezer Item' title below 'Pantry Items' */
position: absolute;
top: 40% ;
width: 100%;
}
#greens,#snacks { /* Second line of food item lists, found under 'Freezer Items'*/
position: relative;
background-color: lightgrey;
padding: 10px;
border: 1px solid #ccc;
margin: 10px;
width: 25%;
float: left;
}
#snacks{
margin-left: 25px;
}
#cannedfood{ /* Tried positioning the image, but it's not working */
position: absolute;
left: 30%;
}
footer {
margin-top: -50px;
position: relative;
}