File tree Expand file tree Collapse file tree 3 files changed +59
-8
lines changed Expand file tree Collapse file tree 3 files changed +59
-8
lines changed Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
7
< title > Challenge #2</ title >
8
+ < link rel ="stylesheet " href ="style.css " />
8
9
</ head >
9
10
< body >
10
11
< article >
11
- < h2 > Converse Chuck Taylor All Star Low Top</ h2 >
12
+ < h2 class =" product-title " > Converse Chuck Taylor All Star Low Top</ h2 >
12
13
< img
13
14
src ="https://i.ibb.co/Jr7Wh1d/challenges.jpg "
14
15
alt ="Chuck Taylor All Star Shoe "
15
16
height ="250 "
16
17
width ="250 "
17
18
/>
18
- < p > < strong > $65.00</ strong > </ p >
19
- < p > Free shipping</ p >
19
+ < p class =" price " > < strong > $65.00</ strong > </ p >
20
+ < p class =" shipping " > Free shipping</ p >
20
21
< p >
21
22
Ready to dress up or down, these classic canvas Chucksare an everyday
22
23
wardrobe staple
23
24
</ p >
24
- < a href ="# "> More information →</ a >
25
- < h3 > Product details</ h3 >
26
- < ul >
25
+ < a class =" more-info " href ="# "> More information →</ a >
26
+ < h3 class =" product-details " > Product details</ h3 >
27
+ < ul class =" details-list " >
27
28
< li > Lightweight, durable canvas sneaker</ li >
28
29
< li > Lightly padded footbed for added comfort</ li >
29
30
< li > Iconic Chuck Tailor ankle patch</ li >
30
31
</ ul >
31
- < button > Add to cart</ button >
32
+ < button class =" add-cart " > Add to cart</ button >
32
33
</ article >
33
34
</ body >
34
35
</ html >
Original file line number Diff line number Diff line change
1
+ body {
2
+ border : 5px solid black;
3
+ font-family : sans-serif;
4
+ }
5
+
6
+ .product-title {
7
+ text-align : center;
8
+ font-size : 22px ;
9
+ text-transform : uppercase;
10
+ background-color : # f7f7f7 ;
11
+ }
12
+
13
+ .price {
14
+ font-size : 24px ;
15
+ }
16
+
17
+ .shipping {
18
+ font-size : 12px ;
19
+ text-transform : uppercase;
20
+ font-weight : bold;
21
+ color : # 777 ;
22
+ }
23
+
24
+ .more-info : link ,
25
+ .more-info : visited {
26
+ color : black;
27
+ }
28
+
29
+ .product-details {
30
+ text-transform : uppercase;
31
+ font-size : 16px ;
32
+ }
33
+
34
+ .details-list li {
35
+ list-style : square;
36
+ }
37
+
38
+ .add-cart {
39
+ background-color : # 000 ;
40
+ border : none;
41
+ color : # fff ;
42
+ font-size : 20px ;
43
+ text-transform : uppercase;
44
+ cursor : pointer;
45
+ }
46
+
47
+ .add-cart : hover {
48
+ color : # 000 ;
49
+ background-color : # fff ;
50
+ }
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ li:last-child {
98
98
}
99
99
100
100
li : nth-child (2 ) {
101
- /* color: red; */
101
+ color : red;
102
102
}
103
103
104
104
a : link {
You can’t perform that action at this time.
0 commit comments