Home › Forums › CSS › [Solved] CSS Best Practice: max-width on html/body elements › Reply To: [Solved] CSS Best Practice: max-width on html/body elements
wasting a CSS rule on #wrapper, you just style the tags through CSS.
What the difference between a CSS rule for a wrapper and for the body.
Nothing…except that ‘body’ is shorter than ‘wrapper’.
By using a wrapper I then have access to using multiple backgrounds on my html and body and wrapper if I so choose.
Also, I can choose to have an element outside my wrapper such a full width header or footer or any other full width item I might want.
You can’t do that if your body isn’t full width.
I suspect in the long run it’s a matter of choice but one ‘extra’ div has never been that much of a hassle to me.