-1

How could I centralize all the elements vertically and horizontally? I tried to fix the div placement horizontally by using CSS float but it too disturbing for me now. Does there any perfect and useful solution. Please help me. I also want them in center

2 Answers2

-1

take a parant div and set it css

    div {
         display: flex;
         justify-content: center;
          align-items: center;

         }

if don't work just

           div{
                margin:auto;
              }