You can set the figure element to block, so it takes up the full width and the img to inline-block so it’s width is only the length necessary to hold its content. This will allow you to use ‘text-align: center’ on the figure element to center its content (the img element and ficaption).