skeleton has the same approach
Pills: A simple responsive CSS grid for humans
91–100 of 102 posts
Re: Pills: A simple responsive CSS grid for humans
#92Earlier quoted context omitted.
Agreed, flexbox is one of the best things to happen to CSS in a very very long time.
> very very long time. It's sad really. Table-based layouts have been considered bad practice for years but CSS is only just now becoming a superset. That is if you're lucky enough to be free of old browsers. If you want everything to "just work" tables are still the practical choice to this day . Kudos to PG for sticking to what he learned in the 90's when he built HN.
Re: Pills: A simple responsive CSS grid for humans
#93Re: Pills: A simple responsive CSS grid for humans
#94Earlier quoted context omitted.
> very very long time. It's sad really. Table-based layouts have been considered bad practice for years but CSS is only just now becoming a superset. That is if you're lucky enough to be free of old browsers. If you want everything to "just work" tables are still the practical choice to this day . Kudos to PG for sticking to what he learned in the 90's when he built HN.
Yes! It's sad that table-based layouts became "bad practice". Generally they're a lot simpler to understand than the mess of CSS and bizarrely named divs we have today.
Today we have much better ways to create an overall layout and separate markup from content. Using tables today would be a lot less of a problem than it was when they were decreed to be "bad."
Re: Pills: A simple responsive CSS grid for humans
#95I created one grid system exactly like this [1] a couple of years ago as part of Picnic CSS [2]. However it was limiting in several factors, so I rewrote it from scratch as a flexbox solution, called it Flexpoint [3] and I love it. Now I need to integrate it back into Picnic. For instance, can you change elements order? How do you account for an undetermined number of elements (same size, full width total)? [1] http:…
Re: Pills: A simple responsive CSS grid for humans
#96Honestly, I just use .something { width: calc(33.33% - #{$spacing-small*3/2}); margin-left: $spacing-small; &:first-of-type { margin-left: 0; } } Well simple
Correction: .something { width: calc(33.33% - #{$spacing-small*2/3}); margin-left: $spacing-small; &:first-of-type { margin-left: 0; } }
.something {
width: calc(33.33% - #{$spacing-small * 2/3});
+ .something {
margin-left: $spacing-small;
}
}Re: Pills: A simple responsive CSS grid for humans
#97Earlier quoted context omitted.
Correction: .something { width: calc(33.33% - #{$spacing-small*2/3}); margin-left: $spacing-small; &:first-of-type { margin-left: 0; } }
For the gutters, just do: .something { width: calc(33.33% - #{$spacing-small * 2/3}); + .something { margin-left: $spacing-small; } }
Re: Pills: A simple responsive CSS grid for humans
#98I created one grid system exactly like this [1] a couple of years ago as part of Picnic CSS [2]. However it was limiting in several factors, so I rewrote it from scratch as a flexbox solution, called it Flexpoint [3] and I love it. Now I need to integrate it back into Picnic. For instance, can you change elements order? How do you account for an undetermined number of elements (same size, full width total)? [1] http:…
Looks good! How does the grid handle columns with different heights?
Re: Pills: A simple responsive CSS grid for humans
#99Earlier quoted context omitted.
Yes! It's sad that table-based layouts became "bad practice". Generally they're a lot simpler to understand than the mess of CSS and bizarrely named divs we have today.
I think part of the reason tables became considered "bad" was that back at that time most web pages were built by interspersed HTML and ASP or PHP code and getting all the TR and TD tags balanced especially with rowspans or colspans thrown in quickly became a mess. Every page was a standalone thing also, it was much less common to see templating systems used to establish the overall structure of the site. So if you e…
In any case, tables are not nearly as flexible as a true responsive layout.
Re: Pills: A simple responsive CSS grid for humans
#100This is a really nice grid system. I love the simplicity and the website. Keep it up!