Can anyone explain how this block of code works?
img{
display:block;
margin:auto;
}
I used this block of code to center a gif. My teacher said to try using align:center; but that had not worked either. I found the answer online but didn't understand it. I know a margin is used to create a space between two different blocks/backgrounds/borders. But what does the auto mean? Thanks.