File tree 2 files changed +81
-0
lines changed
starter/02-HTML-Fundamentals
2 files changed +81
-0
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,22 @@ <h2 class="main-heading">Converse Chuck Taylor All Star Low Top</h2>
18
18
stapple
19
19
</ p >
20
20
< a href ="# " class ="info "> More Information →</ a >
21
+ < div class ="choose-colors ">
22
+ < div class ="col "> </ div >
23
+ < div class ="col two "> </ div >
24
+ < div class ="col three "> </ div >
25
+ < div class ="col four "> </ div >
26
+ < div class ="col five "> </ div >
27
+ < div class ="col six "> </ div >
28
+ </ div >
21
29
< h3 class ="details "> Product details</ h3 >
22
30
< ul class ="features ">
23
31
< li > Lightweight, durable canvas sneaker</ li >
24
32
< li > Lightly padded footbed for added comfort</ li >
25
33
< li > Iconic Chuck Taylor ankle patch.</ li >
26
34
</ ul >
27
35
< button > Add to cart</ button >
36
+ < p class ="sale "> SALE</ p >
28
37
</ article >
29
38
</ body >
30
39
</ html >
Original file line number Diff line number Diff line change @@ -80,8 +80,80 @@ article {
80
80
border : 5px solid black;
81
81
width : 825px ;
82
82
margin : 50px auto;
83
+ position : relative;
83
84
}
84
85
86
+ .sale {
87
+ position : absolute;
88
+ top : -20px ;
89
+ left : -25px ;
90
+ background-color : rgb (240 , 11 , 11 );
91
+ letter-spacing : 1px ;
92
+ color : # fff ;
93
+ font-size : 13px ;
94
+ font-weight : bold;
95
+ padding : 5px 20px ;
96
+ }
97
+
98
+ .choose-colors {
99
+ display : inline-block;
100
+ /* background-color: #f7f7f7; */
101
+ position : relative;
102
+ margin : 10px 0 ;
103
+ height : 60px ;
104
+ width : 100% ;
105
+ }
106
+
107
+ .col {
108
+ display : inline-block;
109
+ background-color : # 000 ;
110
+ margin-top : 20px ;
111
+ margin-right : 15px ;
112
+ height : 25px ;
113
+ width : 25px ;
114
+ }
115
+
116
+ .two {
117
+ background-color : rgb (29 , 29 , 231 );
118
+ }
119
+ .three {
120
+ background-color : red;
121
+ }
122
+ .four {
123
+ background-color : yellow;
124
+ }
125
+ .five {
126
+ background-color : green;
127
+ }
128
+ .six {
129
+ background-color : brown;
130
+ }
131
+ /* .one {
132
+ position: absolute;
133
+ background-color: #000;
134
+ top: 20px;
135
+ height: 25px;
136
+ width: 25px;
137
+ }
138
+
139
+ .two {
140
+ position: absolute;
141
+ background-color: rgb(29, 29, 231);
142
+ top: 20px;
143
+ left: 50px;
144
+ height: 25px;
145
+ width: 25px;
146
+ }
147
+
148
+ .three {
149
+ position: absolute;
150
+ background-color: rgb(240, 11, 11);
151
+ top: 20px;
152
+ left: 100px;
153
+ height: 25px;
154
+ width: 25px;
155
+ } */
156
+
85
157
li {
86
158
margin-bottom : 9px ;
87
159
}
You can’t perform that action at this time.
0 commit comments