I have a <div>
that has its width set as 100%
. When I add position:fixed
to it, the width becomes 16px
larger.
I noticed that on the body, there are 8px
margins on all sides, so I am guessing that position:fixed
is somehow ignoring the margins of the body tag in which it is contained.
I looked at the MDN Reference but was unable to find anything that explains what is going on.
What has position:fixed
changed about the <div>
that causes this behavior?
Example: http://jsfiddle.net/UpeXV/