File tree 2 files changed +36
-8
lines changed
2 files changed +36
-8
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,13 @@ body {
18
18
font-family : 'Lato' , sans-serif;
19
19
}
20
20
21
+ h1 , h2 , h3 {
22
+ font-family : 'Oswald' , sans-serif;
23
+ text-transform : uppercase;
24
+ letter-spacing : 2px ;
25
+ color : # 252525 ;
26
+ }
27
+
21
28
/* Header */
22
29
header {
23
30
background-color : # ffffff ;
@@ -36,13 +43,6 @@ header a {
36
43
color : inherit;
37
44
}
38
45
39
- h1 {
40
- font-family : 'Oswald' , sans-serif;
41
- text-transform : uppercase;
42
- letter-spacing : 2px ;
43
- color : # 252525 ;
44
- }
45
-
46
46
# menu {
47
47
font-size : 110 ;
48
48
letter-spacing : 4px ;
@@ -94,6 +94,23 @@ main {
94
94
height : 600px ;
95
95
width : 100% ;
96
96
background : url ("../images/hero-image.webp" ) no-repeat center center/cover;
97
+ position : relative;
98
+ }
99
+
100
+ # cover-text {
101
+ /* Final rgba value sets the opacity so it is semi-transparent*/
102
+ background-color : rgba (241 , 109 , 107 , .7 );
103
+ font-size : 130% ;
104
+ position : absolute;
105
+ bottom : 30px ;
106
+ width : 80% ;
107
+ min-height : 200px ;
108
+ padding-top : 40px ;
109
+ padding-left : 10px ;
110
+ }
111
+
112
+ # cover-text > h2 , # cover-text > h3 {
113
+ color : # ffffff ;
97
114
}
98
115
99
116
/* Footer */
@@ -145,6 +162,12 @@ main {
145
162
/* Push main content down to accomodate larger header*/
146
163
margin-top : 79px ;
147
164
}
165
+
166
+ /* Hero */
167
+ # cover-text {
168
+ width : 300px ;
169
+ right : 50px ;
170
+ }
148
171
}
149
172
150
173
/* Larger devices (laptops and desktops, 992px and up) */
Original file line number Diff line number Diff line change @@ -37,7 +37,12 @@ <h1 id="logo">Love Running</h1>
37
37
38
38
<!-- Main content -->
39
39
< main >
40
- < section id ="hero "> </ section >
40
+ < section id ="hero "> <!--</section>-->
41
+ < div id ="cover-text ">
42
+ < h2 > Love Running</ h2 >
43
+ < h3 > Dublin Docklands & Phoenix Park</ h3 >
44
+ </ div >
45
+ </ section >
41
46
</ main >
42
47
43
48
<!-- Footer -->
You can’t perform that action at this time.
0 commit comments