I have margins which are set at 200px left and right. However, I’d like the colour of my footer to extend through the whole width of the webpage, not just until where the margins are set.
For example, the footer’s background colour is red and currently it stops where the margins are. But I would like this red background to extend beyond these margins. Is this possible?
Firstly, it’s odd to use the html element to set margins for the page, but I digress.
You could add negative left and right margins to the footer and then padding to compensate: