Answers for "how to put a picture in the center of a div in css"

4

image center in div

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 40%;
}
Posted by: Guest on December-28-2020

Code answers related to "how to put a picture in the center of a div in css"

Browse Popular Code Answers by Language