File tree Expand file tree Collapse file tree 2 files changed +61
-2
lines changed
starter/03-CSS-Fundamentals/challange Expand file tree Collapse file tree 2 files changed +61
-2
lines changed Original file line number Diff line number Diff line change 9
9
< body >
10
10
< div class ="container ">
11
11
< article class ="product ">
12
- < h2 class ="product-title "> Converse Chuck Taylor All Star Low Top</ h2 >
12
+ < div class ="product-title-container ">
13
+ < h2 class ="product-title "> Converse Chuck Taylor All Star Low Top</ h2 >
14
+ </ div >
13
15
< img
14
16
src ="https://i.ibb.co/Jr7Wh1d/challenges.jpg "
15
17
alt ="Chuck Taylor All Star Shoe "
@@ -27,7 +29,14 @@ <h2 class="product-title">Converse Chuck Taylor All Star Low Top</h2>
27
29
< a class ="more-info " href ="https://www.converse.com "
28
30
> More information →</ a
29
31
>
30
-
32
+ < ol class ="variant-list ">
33
+ < li > </ li >
34
+ < li > </ li >
35
+ < li > </ li >
36
+ < li > </ li >
37
+ < li > </ li >
38
+ < li > </ li >
39
+ </ ol >
31
40
< h3 class ="product-details-header "> Product details</ h3 >
32
41
< ul class ="product-details-list ">
33
42
< li > Lightweight, durable canvas sneaker</ li >
Original file line number Diff line number Diff line change 28
28
.container {
29
29
width : 800px ;
30
30
margin : 0 auto;
31
+ padding-top : 20px ;
31
32
}
32
33
33
34
.product {
34
35
border : 4px black solid;
35
36
width : 100% ;
36
37
}
37
38
39
+ .product-title-container {
40
+ position : relative;
41
+ }
42
+
43
+ .product-title-container ::after {
44
+ content : "sale" ;
45
+ text-transform : uppercase;
46
+ background-color : red;
47
+ color : white;
48
+ padding : 5px 15px ;
49
+ position : absolute;
50
+ top : -15px ;
51
+ left : -15px ;
52
+ letter-spacing : 2px ;
53
+ }
54
+
38
55
.product-title {
39
56
font-size : 22px ;
40
57
text-transform : uppercase;
66
83
text-decoration : none;
67
84
}
68
85
86
+ .variant-list {
87
+ list-style : none;
88
+ }
89
+
90
+ .variant-list li {
91
+ display : inline-block;
92
+ width : 20px ;
93
+ height : 20px ;
94
+ margin : 30px 5px ;
95
+ }
96
+
97
+ .variant-list li : first-child {
98
+ background-color : black;
99
+ margin-left : 2px ;
100
+ }
101
+
102
+ .variant-list li : nth-child (2 ) {
103
+ background-color : blue;
104
+ }
105
+
106
+ .variant-list li : nth-child (3 ) {
107
+ background-color : red;
108
+ }
109
+ .variant-list li : nth-child (4 ) {
110
+ background-color : yellow;
111
+ }
112
+ .variant-list li : nth-child (5 ) {
113
+ background-color : green;
114
+ }
115
+ .variant-list li : nth-child (6 ) {
116
+ background-color : brown;
117
+ }
118
+
69
119
.product-details-header {
70
120
text-transform : uppercase;
71
121
}
You can’t perform that action at this time.
0 commit comments