On Tuesday, September 16, 2014, John <j...@coffeeonmars.com> wrote:

>
> On Sep 16, 2014, at 2:29 PM, Jukka K. Korpela <jkorp...@cs.tut.fi
> <javascript:;>> wrote:
>
> > Percentages have their use, but for margin and padding, they are mostly
> unsuitable. The padding between text and the edge of an element should
> relate to the font size, not the total width of something.
>
> Thank you, Jukka….I don’t expect anyone here to be a mind-reader, but why
> do so many advocate using % for margin and padding?
>
> what is a proper use of % for margin and padding? is it for something like
> the width of a content div which you want to be 66.66667% the width of its
> container?
>
> thank you!
>
> John
> _______________________________
>

Some will use % for margin or padding in a fluid grid. For example, based
on a max content width of 960px, a two column layout might have a main col
of 650px, a side bar of 250 and a gutter of 60. Using percentages, that
would be 67%, 26% and 6% with 1% wiggle room (I don't recommend making
everything add up to exactly 100% because of differences in browser
renderings).


-- 

Tom Livingston | Senior Front-End Developer | Media Logic |
ph: 518.456.3015x231 | fx: 518.456.4279 | mlinc.com
______________________________________________________________________
css-discuss [css-d@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/

Reply via email to