@Samir22Raj
Posted
The component looks great. The code is clean and easy to read.
If you are looking for a way to center the element without using position: absolute, then I would recommend you look up layouts like flexbox and grid that provide easy solutions to these positioning problems.
Also, would like to suggest starting with mobile first designs so that you don't face many difficulties down the road on responsive design.
Marked as helpful
@fhelix09
Posted
@Samir22Raj Thank you for the tip, I will try those.