On Feb 13, 2013, at 9:14 PM, Philippe Wittenbergh <[email protected]> wrote:
> > Le 14 févr. 2013 à 03:52, Tom Livingston <[email protected]> a écrit : > >> Hello list, >> >> Given this type of layout: >> http://proof.mlinc.com/tl/fluid/ >> >> Is it possible to have a rigid, non-changing padding amount on containers? >> Is it just a matter of specing padding: 1rem; (or whatever unit) and then >> noodling the width percentages so the 2 columns sit side-by-side? >> >> I haven't done fluid before (sad, I know, but not my fault)… > > Can't seem to load that example. > > But to answer your question: it depends… If having a gap between columns is > OK, then maybe yes, you can do that. > But if the various blocks must be tight together, then you'll run into > problems and headaches. Different browsers have varying ideas on how to round > off values (for font-size, and thus the computed value for your padding) and > a percentage width that works in one browser / device may not work in another. > In that case, consider using the 'box-sizing' property on your blocks. > > div {box-sizing: border-box;} /* add -moz-prefix for Firefox */ > > Border and padding will not affect the (percentage) width of the block. > > Philippe > -- > Philippe Wittenbergh > http://l-c-n.com > Thanks Philippe. Forgot about that. Any info about not being able to load that sample (off list please)? ______________________________________________________________________ css-discuss [[email protected]] 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/
