Why is my caption remaining in the left side?
Your code so far
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36
Challenge: Build a Tribute Page
Link to the challenge:
Maybe you have to add something like that in your CSS:
I hope that was your question!
You centered the image inside the
figure element using auto margin. But nothing will be centered by default (well I guess there are exceptions like the
center element which you shouldn’t use anyway). By default elements and text flow left to right, top to bottom. Just like reading a book.
As said, you can use text-align to align text.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.