|
Prev: Social Marketing Secrets
Next: very important
From: Jeff on 22 Jan 2008 13:42 The simple box model can be a little confusing. My take on the standards mode box model is that the width is the internal width of the contents. That the width of the box itself would have to have the padding and border widths added. I find that a little odd and awkward when setting up "columns", but that's the way it is. Is that about right? Now, what do we get in quirks mode and almost standards mode for calculating widths? Not that I'll be using that doctype, but I'd like to know. I'm sure there must be an explanation somewhere that I missed. Jeff
From: Rik Wasmus on 22 Jan 2008 14:01 On Tue, 22 Jan 2008 19:42:08 +0100, Jeff <jeff(a)spam_me_not.com> wrote: > The simple box model can be a little confusing. > > My take on the standards mode box model is that the width is the > internal width of the contents. That the width of the box itself would > have to have the padding and border widths added. I find that a little > odd and awkward when setting up "columns", but that's the way it is. > > Is that about right? > > Now, what do we get in quirks mode and almost standards mode for > calculating widths? Not that I'll be using that doctype, but I'd like to > know. I'm sure there must be an explanation somewhere that I missed. http://www.quirksmode.org/css/box.html -- Rik Wasmus
From: Jeff on 22 Jan 2008 15:28 Rik Wasmus wrote: > On Tue, 22 Jan 2008 19:42:08 +0100, Jeff <jeff(a)spam_me_not.com> wrote: > >> The simple box model can be a little confusing. >> >> My take on the standards mode box model is that the width is the >> internal width of the contents. That the width of the box itself would >> have to have the padding and border widths added. I find that a little >> odd and awkward when setting up "columns", but that's the way it is. >> >> Is that about right? >> >> Now, what do we get in quirks mode and almost standards mode for >> calculating widths? Not that I'll be using that doctype, but I'd like >> to know. I'm sure there must be an explanation somewhere that I missed. > > http://www.quirksmode.org/css/box.html Thanks, It looks I'll have to wait a few years for the box-sizing model to be widely implemented! It's always something! Jeff
|
Pages: 1 Prev: Social Marketing Secrets Next: very important |