2009/9/9 Brian M. Curran <br...@brianmcurran.com>: > It seems that if I put a div around a group of text, and then in css assign a > width to it, > then give it padding, then the padding increases the total width of the > container by the padding amount.
Yes. You have some content, with a width, and padding goes around it. http://www.w3.org/TR/CSS2/box.html > However, if I put an addition div in, then the padding doesn't increase the > total width of the container. Because the width of the inside div is, presumably, auto — so it sizes to fit the available space (and since the padding is taking up some of that space, there is less for the content width). > Is one method better than the other, or just user preference? Screwdriver. Hammer. Pick one. (i.e. it depends on what you are trying to achieve) -- David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk> ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/