margin auto mistake
Website is sticking to the left, can't understand why.
tried using on body, didn't work
live link :https://ahadweb3.github.io/Fitness-Landing-Page/
source: https://github.com/AhadWeb3/Fitness-Landing-Page
3 Replies
You have the following rule in place:
If you do want to enforce that limit and have the empty space on the sides, you have to apply the
max-width
on the body instead. I'm not quite sure why that is though, but it works.
I think it's probably because it's applying to everything and that would affect the document itself?Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
done, thanks a lot