Answers for "how to aling an image in the center"

CSS
0

image align center

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}
Posted by: Guest on July-22-2020
1

center an image

.classNameOfImage {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
Posted by: Guest on April-10-2021

Browse Popular Code Answers by Language