@md-abid-hussain
Posted
There are many ways to position an element. If you want tp add space between the content you can use padding or margin. Both have different use cases.
I think you are asking for the way to center the content on screen.
Easier way is to use either flex box or grid as display property.
Resource 1 - docs
Resource 2 - videos
These resources helped me in learning css. I hove this can help you as well.
Marked as helpful