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
height
sets the content height of a block or a replaced elementmin-height
sets the minimum content height of a block or a replaced elementmax-height
sets the maximum content height of a block or a replaced elementwidth
sets the content width of a block or a replaced elementmin-width
sets the minimum content width of a block or a replaced elementmax-width
sets the maximum content width of a block or a replaced element
User-contributed notes
- ID:
- #3
- 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.