Kurinchi Blogger Scribbles …


Archive for April 8th, 2009

Apr 08
2009

Box model bug in IE, Firefox

Last updated: April 8th, 2009

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…)


Valid HTML 4.01 Strict  Valid HTML 4.01 Strict