#CssFlexbox

Inautiloinautilo
2025-06-12


A new way to style gaps · Say hello to consistent separators across CSS layouts ilo.im/164kgh

_____

Inautiloinautilo
2025-05-12


The CSS height enigma · Unraveling the mystery of percentage-based heights ilo.im/163u5k

_____

Inautiloinautilo
2025-04-30
Inautiloinautilo
2025-04-28


The unknown side of ‘flex-wrap’ · The CSS property also plays a role in alignment ilo.im/163bb3

_____

Inautiloinautilo
2025-04-25


Top 5 CSS navigation menu mistakes · How to avoid some of the most common UI gotchas ilo.im/163dcq

_____

Inautiloinautilo
2025-03-29


Item Flow (part 1) · A new CSS layout concept uniting Grid, Flexbox, and Masonry ilo.im/1631o0

_____

Inautiloinautilo
2025-03-20


CSS self gap · Custom gaps between some ‘flex’ or ‘grid’ items ilo.im/162wa9

_____

Ana Tudor 🐯anatudor
2025-03-14

Flexy flex layout for any number n of items such that we have:

👉 at most 3 items on a row
👉 at least 2 items on a row IF we have at least 2 items in total

In only 5 (display, flex-wrap, gap, flex and flex-basis override) CSS declarations, working for any number n of items! 🎇

Because someone asked for this on reddit reddit.com/r/css/comments/1jay

Here is the @codepen demo codepen.io/thebabydino/pen/OPJ

Screenshot of the desired layout for the desired number of items.The 5 CSS declarations:

```
section {
  gap: var(--s);
  display: flex;
  flex-wrap: wrap
}

.item {
  flex: 1 1 calc((100% - 2*var(--s))/3);

  &:nth-child(3n):nth-last-child(2), 
  &:nth-child(3n + 1):last-child {
    flex-basis: calc(50% - .5*var(--s))
  }
}
```
Inautiloinautilo
2025-02-08


A meme for the wrong reasons · Centering in CSS used to be hard, but now it’s easy ilo.im/1628ep

_____

Inautiloinautilo
2025-01-18


CSS lessons for your parking fails · Proper car positioning may be easier than you think ilo.im/161t84

_____

Inautiloinautilo
2025-01-09


Simple masonry-like composable layout · A CSS interim solution until browsers catch up ilo.im/161qo0

_____

Aaron In Minnesotaaeischeid
2024-11-01

as a midwesterner you're supposed to know the difference between a tornado-watch and a tornado-warning, but in practice many people have a "I can't remember which is which and I never will" mentality.

If you feel the same about flexbox `align-content` and `align-items`, maybe this cheat-sheet is for you

css-tricks.com/wp-content/uplo

css flexbox cheat sheet image , full guide with text at https://css-tricks.com/snippets/css/a-guide-to-flexbox/
Inautiloinautilo
2024-10-22


Help us choose the final CSS Masonry syntax · Get the latest updates and share your feedback ilo.im/160id2

______

Inautiloinautilo
2024-08-15


‘Smart’ CSS layouts with container queries · New options we never had with media queries ilo.im/15zshu

_____

Inautiloinautilo
2024-07-18


Getting stuck · All the ways CSS ‘position: sticky’ can fail ilo.im/15zi7o

_____

Inautiloinautilo
2024-06-14


Learn CSS grid now, container queries can wait · “Take your time with new CSS, but don’t sleep on the essentials.” ilo.im/15z72q

_____

Inautiloinautilo
2024-06-01


The gap · How CSS ‘gap’ can fix annoying spacing issues ilo.im/15z26r

_____

Inautiloinautilo
2024-02-13


How to center a div · An interactive guide to modern CSS centering techniques ilo.im/15xyxw

_____

Ana Tudor 🐯anatudor
2024-01-02

Ever find yourself wishing an element was `inline` in relation to its parent, but act as a `flex` container for its content?

Hit that yet again and remembered about the multi-value `display` - hmm, has support improved?

It has! It now works cross-browser! 🥳🎇

developer.mozilla.org/en-US/do

display: inline flex on a label that has its ::before styled into a pretty checkbox.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst