Answers for "horizontal alignment css"

CSS
44

css center image

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

css center horizontally

text-align: center; /*also works for images or anything inside the object (I think)*/
Posted by: Guest on July-12-2021
3

how to center a div

margin:auto
Posted by: Guest on August-13-2020

Browse Popular Code Answers by Language