Your Web News in One Place
November 8, 2019 09:17 pm GMT

Two-Value Display Syntax (and Sometimes Three)

You know the single-value syntax: .thing { display: block; }. The value "block" being a single value. There are lots of single values for display. For example, inline-flex, which is like flex in that it becomse a flex container, but behaves like an inline-level element rather than a block-level element. Somewhat intuitive, but much better served by a two-value system that can apply that same concept more broadly and just as intuitively.

For a deep look, you … Read article

The post Two-Value Display Syntax (and Sometimes Three) appeared first on CSS-Tricks.


Original Link: https://css-tricks.com/two-value-display-syntax-and-sometimes-three/

Share this article:    Share on Facebook
View Full Article

CSS Tricks

A Web Design Community curated by Chris Coyier

More About this Source Visit CSS Tricks