CSS HTML Validator: The All-In-One HTML, XHTML, CSS, Link, SEO, and Accessibility Checker
Home Help: max() CSS function

The max() Function

Additional links:

Selects the largest value from a list of comma-separated expressions.

Syntax for max()
 Syntax
CSSmax( <calc-sum># ), where <calc-sum> = "<calc-product> [ [ '+' | '-' ] <calc-product> ]*", <calc-product> = "<calc-value> [ '*' <calc-value> | '/' <calc-number-value> ]*", and <calc-value> = "<number> | <dimension> | <percentage> | ( <calc-sum> )"

Notes

  • Note that the '+' and '-' operators must always be surrounded by whitespace, while the '*' and '/' operators do not require whitespace (but it is recommended for consistency).

Recommended Links

Search Engine Links (for more information)

Help us improve this page: Suggest a link or noteReport a problem