Skip to content

Commit 35bc492

Browse files
committed
1 parent 753e58b commit 35bc492

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed

starter/02-HTML-Fundamentals/challenge.html

+9
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,22 @@ <h2 class="main-heading">Converse Chuck Taylor All Star Low Top</h2>
1818
stapple
1919
</p>
2020
<a href="#" class="info">More Information &rarr;</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>
2129
<h3 class="details">Product details</h3>
2230
<ul class="features">
2331
<li>Lightweight, durable canvas sneaker</li>
2432
<li>Lightly padded footbed for added comfort</li>
2533
<li>Iconic Chuck Taylor ankle patch.</li>
2634
</ul>
2735
<button>Add to cart</button>
36+
<p class="sale">SALE</p>
2837
</article>
2938
</body>
3039
</html>

starter/02-HTML-Fundamentals/style.css

+72
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,80 @@ article {
8080
border: 5px solid black;
8181
width: 825px;
8282
margin: 50px auto;
83+
position: relative;
8384
}
8485

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+
85157
li {
86158
margin-bottom: 9px;
87159
}

0 commit comments

Comments
 (0)