@moheb2000Submitted almost 3 years ago
I have some problems with centering elements on screen. I know how I can center an element with flexbox but in small screens, I see some weird results. Thanks!
I have some problems with centering elements on screen. I know how I can center an element with flexbox but in small screens, I see some weird results. Thanks!
Hi, you can center your elements by giving your element these properties
{ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }