File tree 4 files changed +60
-62
lines changed
4 files changed +60
-62
lines changed Original file line number Diff line number Diff line change 9
9
< link rel ="stylesheet " href ="styles.css " />
10
10
</ head >
11
11
< body >
12
- < main >
13
- < section >
14
- < div class ="slider-container ">
15
- < div class ="slide ">
16
- < img src ="./img-1.jpeg " class ="slide-img " alt ="" />
17
- < h1 > 1</ h1 >
18
- </ div >
19
- < div class ="slide ">
20
- < h1 > 2</ h1 >
21
- </ div >
22
- < div class ="slide ">
23
- < h1 > 3</ h1 >
24
- </ div >
25
- < div class ="slide ">
26
- < div >
27
- < img src ="./person-1.jpeg " class ="person-img " alt ="" />
28
- < h4 > susan doe</ h4 >
29
- < h1 > 4</ h1 >
30
- </ div >
31
- </ div >
12
+ < div class ="slider-container ">
13
+ < div class ="slide ">
14
+ < img src ="./img-1.jpeg " class ="slide-img " alt ="" />
15
+ < h1 > 1</ h1 >
16
+ </ div >
17
+ < div class ="slide ">
18
+ < h1 > 2</ h1 >
19
+ </ div >
20
+ < div class ="slide ">
21
+ < h1 > 3</ h1 >
22
+ </ div >
23
+ < div class ="slide ">
24
+ < div >
25
+ < img src ="./person-1.jpeg " class ="person-img " alt ="" />
26
+ < h4 > susan doe</ h4 >
27
+ < h1 > 4</ h1 >
32
28
</ div >
33
- < div class ="btn-container ">
34
- < button type ="button " class ="prevBtn ">
35
- prev
36
- </ button >
37
- < button type ="button " class ="nextBtn ">
38
- next
39
- </ button >
40
- </ div >
41
- </ section >
42
- </ main >
29
+ </ div >
30
+ </ div >
31
+ < div class ="btn-container ">
32
+ < button type ="button " class ="prevBtn ">
33
+ prev
34
+ </ button >
35
+ < button type ="button " class ="nextBtn ">
36
+ next
37
+ </ button >
38
+ </ div >
39
+
43
40
<!-- javascript -->
44
41
< script src ="app.js "> </ script >
45
42
</ body >
Original file line number Diff line number Diff line change @@ -184,11 +184,13 @@ Slider
184
184
.slider-container {
185
185
border : 5px solid var (--clr-primary-5 );
186
186
width : 80vw ;
187
+ margin : 0 auto;
187
188
height : 40vh ;
188
- max-width : 50 rem ;
189
+ max-width : 80 rem ;
189
190
position : relative;
190
191
border-radius : 0.5rem ;
191
192
overflow : hidden;
193
+ margin-top : 10rem ;
192
194
}
193
195
.slide {
194
196
position : absolute;
Original file line number Diff line number Diff line change 9
9
< link rel ="stylesheet " href ="styles.css " />
10
10
</ head >
11
11
< body >
12
- < main >
13
- < section >
14
- < div class ="slider-container ">
15
- < div class ="slide ">
16
- < img src ="./img-1.jpeg " class ="slide-img " alt ="" />
17
- < h1 > 1</ h1 >
18
- </ div >
19
- < div class ="slide ">
20
- < h1 > 2</ h1 >
21
- </ div >
22
- < div class ="slide ">
23
- < h1 > 3</ h1 >
24
- </ div >
25
- < div class ="slide ">
26
- < div >
27
- < img src ="./person-1.jpeg " class ="person-img " alt ="" />
28
- < h4 > susan doe</ h4 >
29
- < h1 > 4</ h1 >
30
- </ div >
31
- </ div >
12
+ < div class ="slider-container ">
13
+ < div class ="slide ">
14
+ < img src ="./img-1.jpeg " class ="slide-img " alt ="" />
15
+ < h1 > 1</ h1 >
16
+ </ div >
17
+ < div class ="slide ">
18
+ < h1 > 2</ h1 >
19
+ </ div >
20
+ < div class ="slide ">
21
+ < h1 > 3</ h1 >
22
+ </ div >
23
+ < div class ="slide ">
24
+ < div >
25
+ < img src ="./person-1.jpeg " class ="person-img " alt ="" />
26
+ < h4 > susan doe</ h4 >
27
+ < h1 > 4</ h1 >
32
28
</ div >
33
- < div class ="btn-container ">
34
- < button type ="button " class ="prevBtn ">
35
- prev
36
- </ button >
37
- < button type ="button " class ="nextBtn ">
38
- next
39
- </ button >
40
- </ div >
41
- </ section >
42
- </ main >
29
+ </ div >
30
+ </ div >
31
+ < div class ="btn-container ">
32
+ < button type ="button " class ="prevBtn ">
33
+ prev
34
+ </ button >
35
+ < button type ="button " class ="nextBtn ">
36
+ next
37
+ </ button >
38
+ </ div >
39
+
43
40
<!-- javascript -->
44
41
< script src ="app.js "> </ script >
45
42
</ body >
Original file line number Diff line number Diff line change @@ -184,11 +184,13 @@ Slider
184
184
.slider-container {
185
185
border : 5px solid var (--clr-primary-5 );
186
186
width : 80vw ;
187
+ margin : 0 auto;
187
188
height : 40vh ;
188
- max-width : 50 rem ;
189
+ max-width : 80 rem ;
189
190
position : relative;
190
191
border-radius : 0.5rem ;
191
192
overflow : hidden;
193
+ margin-top : 10rem ;
192
194
}
193
195
.slide {
194
196
position : absolute;
You can’t perform that action at this time.
0 commit comments