Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 10, 2020 10:01 pm GMT

Thinking in Behaviors, Not Screen Sizes

Chase McCoy wrote a nifty post about the gap problem when making a grid of items. His argument might be summarized like this: how should we space elements with margins in CSS? He notes that the gap property isnt quite ready for prime time when it comes to using it with flexbox, like this:

.grid {  display: flex;  gap: 10px;}

Right now, using gap with flexbox is only supported in Firefox and Ive already caught myself forgetting about that … Read article “Thinking in Behaviors, Not Screen Sizes”

The post Thinking in Behaviors, Not Screen Sizes appeared first on CSS-Tricks.


Original Link: https://css-tricks.com/thinking-in-behaviors-not-screen-sizes/

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