My website is designed with a 640px page-width for mobile devices, like so:
html, body {
width: 640px;
padding: 25px;
margin-left: auto;
margin-right: auto;
}
All elements have the same margin on both sides and a padding of 25px. While this setup works well, I have one element that I want to span the entire width of the page, disregarding the 640px constraint.
I may be making this more complicated than it needs to be, and perhaps I should reconsider the layout of other elements to ensure they align within the 640px width. Any suggestions?