I need help with those two challenge from Build a tribute page
User Story #8: The img element should responsively resize, relative to the width of its parent element, without exceeding its original size.
User Story #9: The img element should be centred within its parent element.
So here is what I’ve tried so far
-
I tried to change this line here
.mySlides { max-width: 100%; height: auto; }
to this
`.mySlides {
max-width: 100%;
height: auto;
display: block;
}`
so after this attempt it did complete the challenge #9 both my image was now going over everything
-
I tried also this code
.mySlides { max-width: 100%; height: auto; margin-left: auto; margin-right: auto; }
still came up with nothing this didn’t make also any change to the page
and lastly I tried to change this
`.mySlides {
max-width: 100%;
height: auto;
margin 0 auto;
}`
same result as the second attempt
if you guys could just give me a hint not the solution just pointing me in the right direction, so I’ll be able to learn
thanks,
Maurice
here my code pen link: https://codepen.io/mauricefhebert/pen/QWdPKav
here is my GitHub link: GitHub - mauricefhebert/Build-a-Tribute-Page