yes,actually there was unnecessary padding coming up at the right side of my page,idk exactly if its paddign but the horizonal scrollbar came up and right side there was empty space
If you right click on your page and choose “inspect” and view the source code that comes up, you can move your mouse up and down the code to highlight different sections of the page which can help you to identify what is pushing the page outside the viewport.
If you don’t have patience to discover that, you can try some workarounds to force the page to the correct size.
Eg in the root element et max-width:100vw
(Or even a bit less) and set overflow:hidden;
But check your screen if you do that on different devices and screens.
Ps. Your.grid-container should not be 100vw, your root element should be that (body). Also make sure you explicitly zero the margin and padding on each element until your page is fixed. That will help you find the “long element”.
I had something similar happen to me when trying to make a navbar and it was slightly
Try adding
* {
padding: 0;
margin: 0;
}
to the top of your CSS.
The multiplication symbol selects every element on the page, so it might help in case you missed some.