I am building a site using Bootstrap and was unable to get the navbar to span the full width of the page because Bootstrap's default styling forces padding on each side of the page.
I fixed this problem by adding the following CSS but this created a new problem.
@media (max-width: 767px) {
body {
padding-right: 0px;
padding-left: 0px;
}
The new problem is that this causes the desktop size styling to be ignored so it only ends up looking right when the browser window is phone sized.
I think the only way around this may be to understand what @media is for and how it works. Or maybe there is a better way to make a full width navbar that doesn't require modifying @media?
I have seen Bootstrap sites with full width navbars but haven't been able to figure out what part of Bootstrap's code was changed to accomplish this. Modifying @media is the only way I could figure out.
Any help would be greatly appreciated.