<?xml version="1.0"?>
<rss version="2.0">
 <channel>
  <title>Ie and the box model | WPDFD.com Forums</title>
  <link>http://www.wpdfd.com/forums/wpdfd/layout/ie_and_the_box_model/</link>
  <description>A Layout forum thread at WPDFD.com</description>
  <language>en-us</language>
  <pubDate>01/22/04, 022 04 2004 2004:%i:1074819889 20:04:49</pubDate>
  <lastBuildDate>06/07/13, 158 17 2013 2013:%i:1370596664 05:17:44</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NineLabs Framework Feed Generator</generator>
  <managingEditor>sitemaster@wpdfd.com</managingEditor>
  <webMaster>sitemaster@wpdfd.com</webMaster>
     <item>
    <title>Maia  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/ie_and_the_box_model/#p320</link>
    <description><![CDATA[Is it worth it to use hacks to fix IE's box model problem, when adding padding to a nested div works great cross-browser and is less messy?<br /><br /><code><br />&lt;div id=&quot;outer&quot;&gt; &lt;-- define width<br />&lt;div id=&quot;inner&quot;&gt; &lt;-- define padding<br /><br />&lt;/div&gt;<br />&lt;/div&gt;<br /></code><br />]]></description>
    <pubDate>01/22/04, 022 04 2004 2004:%i:1074819889 20:04:49</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/ie_and_the_box_model/#p320</guid>
   </item>
     <item>
    <title>Joe Gillespie said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/ie_and_the_box_model/#p321</link>
    <description><![CDATA[IEs handling of padding can be a problem if you are using absolute widths and expecting a certain size, it's not so much a problem if you are using percentages or unspecified widths. Rather than using commenting hacks in the selectors, I prefer to just avoid using left and right padding where it could be a problem.<br /><br />When I need padding, I put an inner div with left and right margins within the box that needs padding<br /><br />or<br /><br />you can have an outer box with a set width inside which is an inner box which has padding but no specified width so that it just takes up the width available.<br /><br />I consider these workarounds, not hacks.<br /><br />Top and bottom padding is not usually a problem, just left and right.]]></description>
    <pubDate>01/23/04, 023 55 2004 2004:%i:1074837337 00:55:37</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/ie_and_the_box_model/#p321</guid>
   </item>
     <item>
    <title>Jdenny  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/ie_and_the_box_model/#p322</link>
    <description><![CDATA[Traditional model:<br />width / height specify dimensions from border to border.<br /><br />W3C model:<br />width / height specify dimensions from inside the padding (the content edge).<br />e.g. border to border width = left padding + width + right padding.<br /><br /><br />Set Mozilla based and CSS3 compliant browsers to the traditional box model:<br /> &nbsp; &nbsp; &nbsp;-moz-box-sizing: border-box;<br /> &nbsp; &nbsp; &nbsp;box-sizing: border-box;<br /><br />Set Mozilla based and CSS3 compliant browsers to the W3C box model:<br /> &nbsp; &nbsp; &nbsp;-moz-box-sizing: content-box;<br /> &nbsp; &nbsp; &nbsp;box-sizing: content-box;<br />]]></description>
    <pubDate>02/14/04, 045 09 2004 2004:%i:1076810951 21:09:11</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/ie_and_the_box_model/#p322</guid>
   </item>
     <item>
    <title>Hitthosekeys  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/ie_and_the_box_model/#p323</link>
    <description><![CDATA[Al Sparber's been posting on an effective (he calls it &quot;bulletproof&quot<img src="/images/emoticons/wink.png" class="smiley" /> method using MS Conditional Comments.<br /><br />Check the pvii forums (link info at www.projectseven.com)--the post in question dates from Feb 8 and was in the css group, I think. (You'll need a newsreader to access this forum.)<br /><br />I tend to use the &quot;avoid feeding IE a fixed width&quot; solution, but I'd like to understand the box-sizing method described by JDenny:<br /><br />Do you apply these rules to the html tag, the body tag, the div box in question?<br /><br />I've had a lot of legacy browsers to support in my own work, so I'm less familiar with CSS3.<br /><br />TIA,<br /><br />Lisa]]></description>
    <pubDate>02/16/04, 047 00 2004 2004:%i:1076965241 16:00:41</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/ie_and_the_box_model/#p323</guid>
   </item>
     <item>
    <title>Jdenny  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/ie_and_the_box_model/#p324</link>
    <description><![CDATA[You apply it to the box in question, or, to apply to all boxes, get out your universal style sheet and do this:<br /><code>html, body, div {<br /> &nbsp; &nbsp; &nbsp;-moz-box-sizing: content-box;<br /> &nbsp; &nbsp; &nbsp; box-sizing: content-box; <br />}</code><br /><br />add any other block level elements u want to the <b> html, body, div....</b> list]]></description>
    <pubDate>02/16/04, 047 24 2004 2004:%i:1076970284 17:24:44</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/ie_and_the_box_model/#p324</guid>
   </item>
   </channel>
</rss