Answers for "how to align a css "background image" to center both "horizontally and vertically""

4

image center in div

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

Browse Popular Code Answers by Language