@fatlindshehu
Posted
Hi @Isaque803
Centering the component using absolute positioning probably is not the best choice I would recommend:
Centering a div/component using flexbox:
-display: flex
to set the div/component as a flex container.
-justify-content: center
to center the div/component horizontally.
-align-items: center
to center the div/component vertically.
-Make sure the div/component has a height.
-If you’re unfamiliar with flexbox, I would suggest checking THIS
Also is recommended using rem or em units, instead of pixel units, px can cause Issues when trying to make your site/component responsive.
Either way nice work & keep it going...
Marked as helpful