Re: display: inline-block

On 5 Feb 2012, at 02:36, Steven Merrick wrote:

> According to, “inline-block” is a valid CSS value for the “display” property. However, when validating my page ( specifically), I am told that “inline-block” isn’t valid CSS. Per the spec, the validator is incorrect in this behavior.

You are looking at the CSS 2.1 specification but have specified that the validator use the CSS 2.0 profile (the CSS 2.1 profile is the default, which you have overridden). In CSS 2, the display property does not accept inline-block as a value.

David Dorward

Received on Sunday, 5 February 2012 20:23:32 UTC