Case 2: One Value is "Auto"When only one value is set to auto, that value is the one calculated automatically using the previous formula. That is, that value will be maximized made as large as possible. Here is the previous example, which is now slightly modified: BODY { width: 30em } P { width: 25em; margin-left: auto; margin-right: 3em } Now, the right margin will indeed be 3em and the left margin will be calculated (2em). |