-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.css
executable file
·121 lines (98 loc) · 1.88 KB
/
header.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/* HERO image */
.hero-image {
/* The image used */
background-image: url("rose-2101475.jpg");
/* Set a specific height */
height: 50%;
width: 100%;
/* Position and center the image to scale nicely on all screens */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
/* HERO image text styling */
.hero-text {
text-align: center;
position: absolute;
top: 50%;
left: 25%;
transform: translate(-50%, -50%);
color: white;
clear: left;
}
/* Bottom border for navigation buttons */
.bot {
border-bottom: 2px solid black;
}
.clear {
clear: both;
}
.imgs {
padding-top: 1.2em;
}
/* cart icon formatting */
.cart {
padding: 2.2em;
width: 115px;
float: left;
}
/* account icon formatting */
.account {
padding: 2.2em;
width: 115px;
float: left;
}
.container {
max-width: 800px;
background-color: lightgreen;
margin: 0 auto;
position: relative;
}
/* logo formatting */
.logo {
padding-top: 2.5em;
width: 30%;
float: left;
}
/* Searchbox styling */
.searchbox {
padding: 2.5em;
width: 50%;
float: left;
}
/* Style the search field */
form.search input[type=text] {
padding: 10px;
font-size: 17px;
border: 1px solid grey;
float: right;
width: 80%;
background: #f1f1f1;
border-radius: 0 25px 25px 0;
}
/* Style the submit button */
form.search button {
float: left;
width: 20%;
padding: 10px;
background: grey;
color: white;
font-size: 17px;
border: 1px solid grey;
cursor: pointer;
border-radius: 25px 0 0 25px;
}
form.search button:hover {
background: #0b7dda;
}
/* Clear floats */
form.search::after {
content: "";
clear: both;
display: table;
}
article {
width: 50%;
padding: 5%;
}