I’m starting the first challenge, I have to make a tribute page and it’s already complicated for me ^^.
I’m using bootstrap 4 and have a problem centering my picturew. I’ve tried with center-block but it seems it’s not available anymore for bootsrap 4. I can do it with margin but may be is there a way more simple to do it? I tried to find the solution on other topics but nothing works.
The class mx-auto works if the element is a block element or if it has a fixed width. You could try adding the class “d-block” your image as well.
But since your content is inside a container, you could just add the class “text-center” to the container-fluid wrapping it. So everything inside of it, will be centered.
Thank you noyb that’s what I needed ! I understand my mistake, I didn’t declare it to a block element. Ok for the second solution but it implies to create a new container if I don’t want others element be centered.
You were very helpfull, a very big thanks for your help