Can't get rid of space on right!

Is anyone good at css ? I have been stuck at this problem for a long time now . And I don't know how to resolve it . I am trying to get rid of extra space on the right side in the image below but I have bi luck with it, can someone help me?
No description
No description
No description
6 Replies
Jochem
Jochem13mo ago
It'd really help if you shared your code in a away people can run in the browser, preferably just by clicking a link. Codepen or github pages works wonders
Av003
Av003OP13mo ago
Ok , will try to do that
Jochem
Jochem13mo ago
codesandbox I think lets you host react apps even
Av003
Av003OP13mo ago
https://github.com/Ankitv003/Translation-company/ i have created a repo you can check here
GitHub
GitHub - Ankitv003/Translation-company
Contribute to Ankitv003/Translation-company development by creating an account on GitHub.
MarkBoots
MarkBoots13mo ago
not able to clone the repo rn. but i did notice
/* App.css */
#root {
max-width: 1280px;
/* margin: 0 auto; */
/* padding: 2rem; */
text-align: center;
}
/* App.css */
#root {
max-width: 1280px;
/* margin: 0 auto; */
/* padding: 2rem; */
text-align: center;
}
i think the space on the right is because of the max-width. if you want the full with, remove it. if you want it centered, add margin-inline: auto
Av003
Av003OP13mo ago
Ohh, ok Thanks @MarkBoots ❤️, it worked I removed the max-width line This is the best community I came across ❤️!
Want results from more Discord servers?
Add your server