Home ~ ToC ~ Index ~ Refs ~ Feedback Known CSS Implementation Bugs
Last Modified: 31 December 1997

Problems with CSS Lengths

Platforms Demonstrating Problem

Netscape Navigator 4 (all platforms)
Internet Explorer 4 (all versions)

Description of Problem

There are various absolute and relative length units that can be used in CSS documents. However, these units are not allways properly understood by the browsers. In particular, the following two problems are endemic:

These issues are demonstrated in two test documents, ex-lengths-a.html which demonstrates font sizes and text indents) and ex-lengths-b.html, which demonstrates percentage margins.

Possible Workarounds

You should avoid using "ex" units, and need to take into acccount the errors in how the browser's calculate percentage element widths. If possible, then, you can avoid using percentage widths.


Prepared by: Ian Graham Known CSS Implementation Bugs
Last Modified: 31 December 1997