File tree Expand file tree Collapse file tree 4 files changed +84
-8
lines changed Expand file tree Collapse file tree 4 files changed +84
-8
lines changed Original file line number Diff line number Diff line change 15
15
.product-container {
16
16
border : black 4px solid;
17
17
width : 825px ;
18
- margin : 5 0px auto;
18
+ margin : 25px auto;
19
+ position : relative;
19
20
}
20
-
21
21
.product-name {
22
22
background : # f7f7f7 ;
23
23
text-transform : uppercase;
24
24
text-align : center;
25
25
padding : 20px 0 ;
26
26
}
27
27
28
+ .product-name ::after {
29
+ content : 'SALE' ;
30
+ position : absolute;
31
+ top : 25px ;
32
+ left : -25px ;
33
+ background : red;
34
+ color : white;
35
+ letter-spacing : 2px ;
36
+ padding : 5px 5px ;
37
+ }
38
+
28
39
.product-details {
29
40
text-transform : uppercase;
30
41
margin-bottom : 20px ;
@@ -105,3 +116,12 @@ nav {
105
116
opacity : 0.8 ;
106
117
justify-content : center;
107
118
}
119
+
120
+ .colored-boxes li {
121
+ display : block-inline;
122
+ }
123
+
124
+ .black {
125
+ background-color : black;
126
+ border : solid 5px black;
127
+ }
Original file line number Diff line number Diff line change 8
8
border-top : 5px solid # 1098ad ;
9
9
color : # 444 ;
10
10
font-family : sans-serif;
11
+ position : relative;
11
12
}
12
13
13
14
.container {
@@ -48,6 +49,8 @@ aside {
48
49
width : 500px ;
49
50
}
50
51
52
+ /* SMALLER ELEMENTS */
53
+
51
54
h1 ,
52
55
h2 ,
53
56
h3 {
62
65
63
66
h2 {
64
67
font-size : 40px ;
65
- border-bottom : 5 px solid # 1098ad ;
68
+ position : relative ;
66
69
margin-bottom : 30px ;
67
70
}
68
71
@@ -166,6 +169,20 @@ a:active {
166
169
font-style : italic;
167
170
}
168
171
172
+ nav a : link {
173
+ /* background-color: orangered;
174
+ margin: 20px;
175
+ padding: 20px;
176
+ display: block; */
177
+ margin-right : 30px ;
178
+ margin-top : 10px ;
179
+ display : inline-block;
180
+ }
181
+
182
+ nav a : link : last-child {
183
+ margin-right : 0px ;
184
+ }
185
+
169
186
/* Resolving conflicts */
170
187
/*
171
188
footer p {
@@ -204,3 +221,34 @@ High to Low
204
221
width : 100% ;
205
222
height : auto;
206
223
}
224
+
225
+ button {
226
+ font-size : 22px ;
227
+ padding : 20px ;
228
+ cursor : pointer;
229
+ position : absolute;
230
+ bottom : 50px ;
231
+ right : 50px ;
232
+ }
233
+
234
+ h1 ::first-letter {
235
+ font-style : normal;
236
+ margin-right : 5px ;
237
+ }
238
+
239
+ h3 + p {
240
+ /* color: red; */
241
+ }
242
+
243
+ h2 ::after {
244
+ content : 'TOP' ;
245
+ background-color : # ffe70e ;
246
+ color : black;
247
+ font-size : 16px ;
248
+ font-weight : bold;
249
+ display : inline-block;
250
+ padding : 5px 10px ;
251
+ position : absolute;
252
+ top : -10px ;
253
+ right : -25px ;
254
+ }
Original file line number Diff line number Diff line change @@ -25,15 +25,16 @@ <h1>📘 The Code Magazine</h1>
25
25
< nav >
26
26
< a href ="./pages/blog.html "> Blog</ a >
27
27
< a href ="./pages/challenges.html "> Challenges</ a >
28
- < a href ="# "> Fexbox </ a >
28
+ < a href ="# "> Flexbox </ a >
29
29
< a href ="# "> CSS Grid </ a >
30
30
</ nav >
31
+ < button > ❤Like</ button >
31
32
</ header >
32
33
33
34
< article >
34
35
< header class ="post-header ">
35
36
< h2 > The Basic Langauge of The Web: HTML</ h2 >
36
- < img src ="./imgs/laura-jones.jpg " src ="the person who wrote this " width ="50 " height ="50 " />
37
+ < img src ="./imgs/laura-jones.jpg " alt ="the person who wrote this " width ="50 " height ="50 " />
37
38
< p id ="author "> Posted by < strong > Laura Jones </ strong > on Monday, June 21st 2027</ p >
38
39
< br />
39
40
@@ -88,13 +89,12 @@ <h4><strong>Related Posts</strong></h4>
88
89
< a href ="# "> How to Learn Web Development</ a >
89
90
< p class ="related-author "> By Jonas Schmeltmann</ p >
90
91
</ li >
91
- < br />
92
+
92
93
< li >
93
94
< img src ="imgs/related-2.jpg " alt ="Unknown Power of CSS " height ="50 " width ="50 " />
94
95
< a href ="# "> The Uknown Power of CSS</ a >
95
96
< p class ="related-author "> By Jonas Schmeltmann</ p >
96
97
</ li >
97
- < br />
98
98
< li >
99
99
< img src ="imgs/related-3.jpg " alt ="Why Javascript is Awsome " height ="50 " width ="50 " />
100
100
< a href ="# "> Why Javascript is Awsome</ a >
@@ -104,7 +104,7 @@ <h4><strong>Related Posts</strong></h4>
104
104
</ aside >
105
105
106
106
< footer >
107
- < p id ="copyright " class ="copyright text "> Copyright © 2017 by The Code Magazine</ p >
107
+ < p id ="copyright " class ="copyright text "> Copyright © 2017 by The Code Magazine</ p >
108
108
</ footer >
109
109
</ div >
110
110
</ body >
Original file line number Diff line number Diff line change @@ -18,6 +18,14 @@ <h2 class="product-name">Converse Chuck Taylor All Start Low Top</h2>
18
18
< p > Ready to dress up or down, these classic convo Chucks are an everyday wardrobe staple</ p >
19
19
< a class ="more-info " href ="# "> < p > More information →</ p > </ a >
20
20
21
+ < ul class ="colored-boxes ">
22
+ < li class ="black "> < div > </ div > </ li >
23
+ < li class ="blue "> </ li >
24
+ < li class ="red "> </ li >
25
+ < li class ="yellow "> </ li >
26
+ < li class ="green "> </ li >
27
+ < li class ="brown "> </ li >
28
+ </ ul >
21
29
< h3 class ="product-details "> Product Details</ h3 >
22
30
< ul >
23
31
< li > Lightweight, durable and painful</ li >
You can’t perform that action at this time.
0 commit comments