home.social

#cssflexbox — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #cssflexbox, aggregated by home.social.

fetched live
  1. I just don't get why anyone would use:

    ```
    display: flex;
    flex-direction: column
    ```

    when `display: grid` is supported, shorter to write and allows for a lot more flexibility if you want more from your layout.

    #CSS #code #coding #frontend #layout #web #dev #webDevelopment #webDev #cssLayout #cssGrid #cssFlexbox

  2. I just don't get why anyone would use:

    ```
    display: flex;
    flex-direction: column
    ```

    when `display: grid` is supported, shorter to write and allows for a lot more flexibility if you want more from your layout.

    #CSS #code #coding #frontend #layout #web #dev #webDevelopment #webDev #cssLayout #cssGrid #cssFlexbox

  3. 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

    #CSS #flexbox #layout #cssLayout #cssFlexbox #code #coding #frontend #web #dev #webDev #webDevelopment

  4. 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

    #CSS #flexbox #layout #cssLayout #cssFlexbox #code #coding #frontend #web #dev #webDev #webDevelopment

  5. 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 #CSS flexbox `align-content` and `align-items`, maybe this cheat-sheet is for you

    css-tricks.com/wp-content/uplo

    #webDev #CssFlexbox

  6. 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 #CSS flexbox `align-content` and `align-items`, maybe this cheat-sheet is for you

    css-tricks.com/wp-content/uplo

    #webDev #CssFlexbox