Answers for "completely center a div"

CSS
6

how to center a div

.center {
  margin: auto;
  width: 50%;
  border: 3px solid green;
  padding: 10px;
}
Posted by: Guest on July-14-2020
0

how to center a div

<center>
  <div> YOUR DIV </div>
</center>
Posted by: Guest on January-30-2022
-1

how to center div

centering div
Posted by: Guest on October-28-2021

Browse Popular Code Answers by Language