Archive for April 8, 2009
Box model bug in IE, Firefox
Box model bug in IE, Firefox
Display the below versions of the file in IE, Firefox and check the difference in display. Note the css styling used in Sample A and Sample B HTML coding.
When defining the width of the “div” layer it is essential that you need to consider the padding, margin, border size given to each element. As different browser versions have different ways of interpreting these values we need to cascade the width from the parent element to child layer if we were destined to use width for restricting the boundary of the element. (more…)