Reply To: Need to center an image in preview

#5378
Beautyseeker2224
Guest

Thank you all so much! I did not expect to get this much feed back but I now see how helpful this community can be! I have begun to the problem using this code:

`img {`

`display: block;`

`margin-left: auto;`

`margin-right: auto;`

`width: 30%;`

`}`

​

That i found on: [www.w3schools.com](https://www.w3schools.com). Although now I see that all of the photos are being effected by that code. How can I select only one photo?