Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix: correct the width of main and footer #130
The widths of the elements
The correction was done with changing the box model to border-box (which includes paddings and border-widths in the width calculation for the element). Additionally the width rule for the direct childs of body was moved to a descendent selector for all these elements.
Attention The descendent selector would select also every direct child of
I'm not sure border-box is the correct solution - it feels like a bit of a "cheat", and seems to have other effects besides the intended - section headings move, as does the OTTD banner
EDIT: I have been reliably informed that I am wrong. Still, some extra padding in a few places looks to be required now...