I can't get my image to center

I can't get my image to center
0

#1

I am trying to get an image to center in my tribute page. It won’t work and am a bit confused on what the code needs to look like. Do I put align=“middle” for this or is it something else? Thanks


#2

for images in css file write
display: block;
margin: auto;

for text and buttons it will be
text-align: center;


#3

Thanks for the help.


#4

Is there a way to do it in bootstrap? I am a little confused on when to use bootstrap and when to use CSS


#5

Bootstrap has center-block class, iirc, which can be used for this.