As a newcomer to web development, I am currently working on a Bootstrap website. Everything seemed to be working fine in desktop mode, but I encountered an issue in the mobile view where some Bootstrap columns were overflowing, causing a vertical white space on the mobile screen. After inspecting the website using Chrome Developer Tools, I discovered that if I untick the following CSS:
.row {
margin-right: calc(var(--bs-gutter-x)/ -2);
margin-left: calc(var(--bs-gutter-x)/ -2);
}
I was able to solve the problem by adjusting the row values in my CSS file:
.row {
margin-left: 0%;
margin-right: 0%;
}
Unfortunately, this code did not seem to take effect in the browser.
Below is an image depicting my issue:
https://i.sstatic.net/4GcC9.jpg
On the other hand, the solution provided by Chrome inspect tools worked perfectly:
https://i.sstatic.net/nVp3f.png
Interestingly, this code worked fine on the Codeply online editor's mobile version but not on actual mobile devices or Chrome Developer Tools.
For more information on my project, please visit: