How to make the text middle in the page while the browser length decreases

while iam writing the code to portofolio page

when iam writing my name and extra content … it is middle but when i decrease browser size it is not sense

Do you have a link to a codepen? If not, try giving your container text-align: center rule.