File tree 4 files changed +139
-2
lines changed
myWork/03-CSS-Fundamentals/challenges
4 files changed +139
-2
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 2
2
< html lang ="en ">
3
3
< head >
4
4
< meta charset ="UTF-8 " />
5
- < title > Section 2 - Challenge #2 </ title >
5
+ < title > Section 3 - Challenge #1 </ title >
6
6
< link href ="challenge1css.css " rel ="stylesheet " />
7
7
</ head >
8
8
< body >
9
9
< article class ="product ">
10
10
< header >
11
11
< h2 class ="product-name "> Converse Chuck Taylor All Star Low Top</ h2 >
12
12
< img
13
- src ="../images/challenges.jpg "
13
+ src ="../../ images/challenges.jpg "
14
14
alt ="Converse Chuck Taylor All Star Low Top "
15
15
height ="250 "
16
16
width ="250 "
Original file line number Diff line number Diff line change
1
+ * {
2
+ padding : 0 ;
3
+ margin : 0 ;
4
+ }
5
+
6
+ .container {
7
+ width : 825px ;
8
+ margin : 5px auto;
9
+ }
10
+
11
+ body {
12
+ font-family : sans-serif;
13
+ line-height : 1.4 ;
14
+ }
15
+
16
+ .product {
17
+ border : 4px solid black;
18
+ }
19
+
20
+ .product-name {
21
+ text-transform : uppercase;
22
+ font-size : 22px ;
23
+ font-weight : bold;
24
+ background-color : # f7f7f7 ;
25
+ text-align : center;
26
+ padding : 10px 0 ;
27
+ }
28
+
29
+ .price {
30
+ font-size : 18px ;
31
+ font-weight : bold;
32
+ }
33
+
34
+ .shipping {
35
+ text-transform : uppercase;
36
+ font-size : 14px ;
37
+ font-weight : bold;
38
+ color : # 1098ad ;
39
+ margin-bottom : 10px ;
40
+ }
41
+
42
+ .more-info-link : link ,
43
+ .more-info-link : visited {
44
+ color : black;
45
+ }
46
+
47
+ .more-info-link : hover ,
48
+ .more-info-link : active {
49
+ color : black;
50
+ text-decoration : none;
51
+ }
52
+
53
+ .product-details-heading {
54
+ text-transform : uppercase;
55
+ font-size : 18px ;
56
+ margin : 30px 0 5px 0 ;
57
+ }
58
+
59
+ .product-details-list {
60
+ list-style-type : square;
61
+ margin : 10px 20px ;
62
+ }
63
+
64
+ .product-details-list li {
65
+ margin-bottom : 5px ;
66
+ }
67
+
68
+ .product-details-list li : last-child {
69
+ margin-bottom : 0 ;
70
+ }
71
+
72
+ .add-to-cart-button {
73
+ width : 100% ;
74
+ text-transform : uppercase;
75
+ background-color : black;
76
+ color : white;
77
+ border : none;
78
+ border-top : 4px solid black;
79
+ font-size : 16px ;
80
+ cursor : pointer;
81
+ padding : 10px 0 ;
82
+ }
83
+
84
+ .add-to-cart-button : hover {
85
+ background-color : white;
86
+ color : black;
87
+ }
88
+
89
+ .short-description-text {
90
+ margin-bottom : 5px ;
91
+ }
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 " />
5
+ < title > Section 3 - Challenge #2</ title >
6
+ < link href ="challenge2css.css " rel ="stylesheet " />
7
+ </ head >
8
+ < body >
9
+ < div class ="container ">
10
+ < article class ="product ">
11
+ < header >
12
+ < h2 class ="product-name "> Converse Chuck Taylor All Star Low Top</ h2 >
13
+ < img
14
+ src ="../../images/challenges.jpg "
15
+ alt ="Converse Chuck Taylor All Star Low Top "
16
+ height ="250 "
17
+ width ="250 "
18
+ />
19
+ </ header >
20
+
21
+ < h4 class ="price "> $65.00</ h4 >
22
+
23
+ < p class ="shipping "> Free shipping</ p >
24
+
25
+ < p class ="short-description-text ">
26
+ Ready to dress up or down, these classic canvas Chucks are an everyday
27
+ wardrobe staple.
28
+ </ p >
29
+
30
+ < a href ="# " target ="_blank " class ="more-info-link "
31
+ > More information →</ a
32
+ >
33
+
34
+ < h3 class ="product-details-heading "> Product details</ h3 >
35
+
36
+ < ul class ="product-details-list ">
37
+ < li > Lightweight, durable canvas sneaker</ li >
38
+ < li > Lightly padded footbed for added comfort</ li >
39
+ < li > Iconic Chuck Taylor ankle patch</ li >
40
+ </ ul >
41
+
42
+ < button class ="add-to-cart-button "> Add to cart</ button >
43
+ </ article >
44
+ </ div >
45
+ </ body >
46
+ </ html >
You can’t perform that action at this time.
0 commit comments