Re: display: inline-block

2012-02-05 4:36, Steven Merrick wrote:

> According to http://www.w3.org/TR/CSS2/visuren.html, “inline-block” is a
> valid CSS value for the “display” property. However, when validating my
> page
> (http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3a%2f%2flithorien.net%2fblog%2findex.shtml
> <http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3a%2f%2flithorien.net%2fblog%2findex.shtml>
> specifically), I am told that “inline-block” isn’t valid CSS. Per the
> spec, the validator is incorrect in this behavior.

You are using the CSS 2.0 profile (profile=css2). Use the CSS 2.1 
profile (profile=css21), which is now the default:
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Flithorien.net%2Fblog%2Findex.shtml&profile=css21&usermedium=all&warning=1&vextwarning=&lang=en

Yucca

Received on Sunday, 5 February 2012 21:05:15 UTC