Answers for "how to align a image in center css"

CSS
44

css center image

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
Posted by: Guest on November-28-2019
7

centre align image in div

body {
  margin: 0;
}

#over img {
  margin-left: auto;
  margin-right: auto;
  display: block;
}
Posted by: Guest on November-06-2020
12

center image css

.centerImg {
  display: block;
  margin: 0 auto;
}
Posted by: Guest on June-01-2020

Browse Popular Code Answers by Language