It's another one of my theoretical CSS questions that may or may not have an answer. How is default margin/padding on an OL calculated? I figure it varies by UA, but there must must be a pattern and a pattern must be being applied to cause the following observed behavior.
Say you have an OL, with display-type:upper-roman; (because it's the most obvious) , and you HAVEN'T applied any sort of margin/padding reset, you will notice that the space used to accommodate the marker changes automatically. That is, there is AUTOMATICALLY more space if the list has 38 items (XXXVII) than if the list has 11 (VIII, being the longest). This leads me to believe that there must be a 'default' ( even if it's vendor specific) to let the list adjust the space of the longest maker. This seems nearly impossible to estimate manually ( that is if you allow a fixed amound of space, say 4em, and your list has 6-7 items it seems like execcive space but if your list has 28 items then it wont be enough space).
Do any of the forum experts know what this property is? Is there anyway to go back to it after a reset?





Reply With Quote




Bookmarks