File tree 2 files changed +65
-22
lines changed
starter/02-HTML-Fundamentals
2 files changed +65
-22
lines changed Original file line number Diff line number Diff line change 7
7
< title > Challenges</ title >
8
8
< link href ="stylec.css " rel ="stylesheet " />
9
9
</ head >
10
- < body >
11
- < article >
12
- < h2 > Converse Chuck Taylor All Star Low Top</ h2 >
13
- < img src ="img/challenges.jpg " width ="100 " height ="100 " alt ="图片炸了 " />
14
- < p > < b > $65.00</ b > </ p >
15
- < p class ="fshi "> Free shipping</ p >
16
- < p >
17
- Ready to dress up or down, these classic canvas Chucks are an everyday
18
- wardrobe staple
19
- </ p >
20
- < a href ="# "> More information →</ a >
21
- < h3 > Product details</ h3 >
22
- < ul class ="details ">
23
- < li > Lightweight, durable canvas sneaker</ li >
24
- < li > Lightly padded footbed for added comfort</ li >
25
- < li > Iconic Chuck Taylor ankle patch</ li >
26
- </ ul >
10
+ < div class ="container ">
11
+ < body >
12
+ < article >
13
+ < h2 > Converse Chuck Taylor All Star Low Top</ h2 >
14
+ < img src ="img/challenges.jpg " width ="200 " height ="200 " alt ="图片炸了 " />
15
+ < p > < b > $65.00</ b > </ p >
16
+ < p class ="fshi "> Free shipping</ p >
17
+ < p >
18
+ Ready to dress up or down, these classic canvas Chucks are an everyday
19
+ wardrobe staple
20
+ </ p >
21
+ < a href ="# "> More information →</ a >
22
+ < h3 > Product details</ h3 >
23
+ < ul class ="details ">
24
+ < li > Lightweight, durable canvas sneaker</ li >
25
+ < li > Lightly padded footbed for added comfort</ li >
26
+ < li > Iconic Chuck Taylor ankle patch</ li >
27
+ </ ul >
27
28
28
- < button > Add to cart</ button >
29
- </ article >
30
- </ body >
29
+ < button class ="add-to-cart "> Add to cart</ button >
30
+ </ article >
31
+ </ body >
32
+ </ div >
31
33
</ html >
Original file line number Diff line number Diff line change
1
+ * {
2
+ margin : 0 ;
3
+ padding : 0 ;
4
+ }
5
+
1
6
body {
2
7
font-family : sans-serif;
3
8
line-height : 1.4 ;
4
- border : 5px solid black;
9
+ }
10
+
11
+ p {
12
+ margin-bottom : 15px ;
5
13
}
6
14
7
15
h2 {
8
16
text-align : center;
9
17
background-color : # f7f7f7 ;
10
18
text-transform : uppercase;
11
19
font-size : 22px ;
20
+ /* height: 40px; */
21
+ padding : 10px ;
22
+ text-align : center;
12
23
}
13
24
25
+ h3 {
26
+ margin-top : 30px ;
27
+ }
14
28
b {
15
29
font-size : 24px ;
16
30
}
17
31
18
32
button {
33
+ /* height: 50px; */
34
+ border-left : 0 ;
35
+ border-right : 0 ;
36
+ border-bottom : 0 ;
37
+ padding : 15px ;
19
38
font-size : 26px ;
20
- border : none;
39
+ margin : 0 ;
40
+ border-top : 5px solid black;
21
41
background-color : black;
22
42
color : white;
23
43
cursor : pointer;
@@ -43,6 +63,15 @@ a:active {
43
63
button : hover {
44
64
background-color : white;
45
65
color : black;
66
+ /* border-top: 5px solid black; */
67
+ }
68
+
69
+ li {
70
+ margin-bottom : 10px ;
71
+ }
72
+
73
+ ul {
74
+ margin-left : 18px ;
46
75
}
47
76
48
77
.fshi {
@@ -55,3 +84,15 @@ button:hover {
55
84
.details {
56
85
list-style : square;
57
86
}
87
+
88
+ .add-to-cart {
89
+ width : 100% ;
90
+ }
91
+
92
+ .container {
93
+ border : 5px solid black;
94
+ width : 825px ;
95
+ /* height: auto; */
96
+ margin : 50px auto;
97
+ padding : 0 ;
98
+ }
You can’t perform that action at this time.
0 commit comments