Languages

React - center image in row/column with react-bootstrap

0 points
Asked by:
a_horse
538

How can I center image in react-bootstrap?

I have the following component:

1 answer
0 points
Answered by:
Admin Dirask Community
4380

You need to change your image to display: block and add margin: auto in X-axis:

For your code it would be:

0 commentsAdd comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join