The 1 pixel rounding error problem
January 11th, 2006 by Sonja DuijvesteijnThis example from positioniseverything.net shows perfectly when you should not use percentages specifying width and height. If you look at that page, and resize your window missing pixels will appear. The theory behind this is simpel.
When you have 101 pixels and devide that in four even blocks (25%) all of those will then be 25 pixels in width. As 25 *4 = 100 there must be an extra pixel somewhere. Browsers don’t decide where they will leave this one pixel, but leave it blank instead. So if you use percentages, make sure you add one with the size *. This then fills up the extra pixel.
This is a cross browser bug. So you can’t just blame Internet Exploder for this one.
Related posts
Font-sizes in css: em ex px, mm cm in pt pc, %
CSS image preloading
Flex 2.0 beta 2
Write valid HTML with Firefox extensions
Flash on Internet Explorer after Eolas patch