Skip to: content, navigation

Dimensions

These properties allow us to control the height and width of element boxes. You can also read The CSS Box Model for more information about the calculation of box dimensions.

In this Section

User-contributed notes

ID:
#3
Contributed:
by Thorn007
Date:
Tue, 31 Mar 2009 14:43:37 GMT
Status:
This note has not yet been confirmed for accuracy and relevance.

When adding the width/height property to a li element who's parent is an ol element in some versions of IE, mainly IE6 and IE7, the list will not increment properly. To work around this "feature" add width/height to the parent ol element, not the li element.

NOTE: This affects external, inline and internal styles; with the exception of styling only the first list item.

Add a note

To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

Related Products

Search