On Sun, Mar 9, 2014 at 7:59 PM, Georg <ge...@gunlaug.com> wrote:
> Den 10.03.2014 00:32, skrev Philippe Wittenbergh:
>
>> The box model John. Adding the padding makes the box wider.
>
>
> Same thing with the border. The 1px border on that image makes it 2px wider
> and taller than 100%.
>

If you really need to have that 100% width and the padding on that
element, either adjust the width down so the padding and border don't
make it larger than 100%, or use "box-sizing: border-box;" so that the
width stays what you want it to regardless of padding.  Be sure to
check browser support and add any vendor prefixes needed!

-- 

tim.arn...@gmail.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