Text-align is not working on my website


I deploy this website with Netlify and the text is in the wrong position

In the code, I added the text-align property and it’s not working when I deploy the site with Netlify.

@Mrdev88 If you are referring to the position of the heading Snap spotlight

This has nothing to do with Netlify, and is simply as per the styling code that you have.

You have h1 set to max-width: 80%; so the text is aligning to only 80% of the area.

To fix you would could ensure it is 100% width, so the text-align centers where you expect, or you could center the 80% area using an auto margin for the left/right. E.g. margin: 0 auto;.

1 Like

ok, I will fix the position