-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.html
203 lines (200 loc) · 4.86 KB
/
blog.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Blog Page</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: sans-serif;
line-height: 1.5;
}
article {
border: 4px solid black;
position: relative;
}
article h1 {
background-color: rgb(219, 219, 219);
text-align: center;
padding: 10px;
color: black;
font-size: 22px;
text-transform: uppercase;
}
article a {
color: black;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
button {
margin-top: 8px;
background-color: black;
color: white;
font-size: large;
text-transform: uppercase;
cursor: pointer;
border: none;
width: 100%;
padding: 10px;
border-top: 3px solid black;
}
button:hover {
background-color: white;
color: black;
}
li {
margin-left: 20px;
list-style-type: square;
}
article h4 {
text-transform: uppercase;
}
.price {
font-weight: bold;
font-size: 24px;
/* float: left; */
}
.shipping {
text-transform: uppercase;
color: #777;
font-weight: bold;
font-size: 12px;
/* float: right; */
/* margin-top: 10px; */
}
.container {
width: 825px;
margin: 50px auto;
}
.sale {
background-color: #ec2f2f;
color: white;
font-size: 12px;
display: inline-block;
padding: 7px 15px;
width: 60px;
padding-left: 10px;
position: absolute;
top: -17px;
left: -34px;
letter-spacing: 2px;
font-weight: bold;
text-align: center;
}
.one {
height: 20px;
width: 20px;
background-color: rgb(0, 0, 0);
}
.two {
height: 20px;
width: 20px;
background-color: rgb(0, 113, 133);
}
.three {
height: 20px;
width: 20px;
background-color: rgb(199, 0, 149);
}
.four {
height: 20px;
width: 20px;
background-color: aqua;
}
.five {
height: 20px;
width: 20px;
background-color: rgb(228, 0, 0);
}
.six {
height: 20px;
width: 20px;
background-color: rgb(26, 219, 0);
}
img {
margin-right: 15px;
}
/* .pd {
clear: both;
}
.img {
float: left;
margin-right: 40px;
}
.productt {
width: 243px;
float: left;
padding: 20px;
}
.producttt {
width: 243px;
float: left;
margin-top: 30px;
} */
.product-price {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
margin-right: 15px;
}
.colors {
display: flex;
gap: 10px;
}
.flex {
display: flex;
justify-content: space-evenly;
align-items: center;
}
</style>
</head>
<body>
<!-- <h1>Blog</h1> -->
<div class="container">
<article>
<p class="sale">Sale</p>
<h1>Converse Chuck Taylor All Star Low Top</h1>
<div class="flex">
<img class="img" src="related-3.jpg" height="250" alt="product-img" />
<div class="productt">
<div class="product-price">
<p class="price">$50.00</p>
<p class="shipping">Free Shipping</p>
</div>
<p class="pd">
Ready to dress up or down,these classic canvas are an every day
staple
</p>
<a href="#">More information →</a>
<div class="colors">
<div class="one"></div>
<div class="two"></div>
<div class="three"></div>
<div class="four"></div>
<div class="five"></div>
<div class="six"></div>
</div>
</div>
<div class="producttt">
<h4>Product Detail</h4>
<ul>
<li>Lightweigt, durable canvas sneaker</li>
<li>Lightly padded footbed</li>
<li>Iconic Chuck Taylor</li>
</ul>
</div>
</div>
<button>Add To Cart</button>
</article>
</div>
<a href="index.html">Back</a>
</body>
</html>