HighDots Forums  

quirks mode box model

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss quirks mode box model in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeff
 
Posts: n/a

Default quirks mode box model - 01-22-2008 , 12:42 PM






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

Reply With Quote
  #2  
Old   
Rik Wasmus
 
Posts: n/a

Default Re: quirks mode box model - 01-22-2008 , 01:01 PM






On Tue, 22 Jan 2008 19:42:08 +0100, Jeff <jeff (AT) spam_me_not (DOT) com> wrote:

Quote:
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


Reply With Quote
  #3  
Old   
Jeff
 
Posts: n/a

Default Re: quirks mode box model - 01-22-2008 , 02:28 PM



Rik Wasmus wrote:
Quote:
On Tue, 22 Jan 2008 19:42:08 +0100, Jeff <jeff (AT) spam_me_not (DOT) 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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.