Recently, I added a new footer to my Twitter Bootstrap website and noticed that when I resize the window, gaps appear on the left and right sides.
I understand that this issue is related to the following CSS code...
@media (max-width: 767px) {
body {
padding-left: 20px;
padding-right: 20px;
}
Upon changing the padding to 0px, the footer gaps disappear, but it also leads to the entire page losing its margin.
Even after attempting the following adjustment, the issue persists:
@media (max-width: 767px) {
footer {
padding-left: 0px;
padding-right: 0px;
}
Has anyone encountered a similar problem before?