home.social

#subgrid — Public Fediverse posts

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

fetched live
  1. #Safari drives me crazy when it comes to #CSS subgrids. Safari does not apply the subgrid spacing correctly. It recognizes the entire #subgrid span correctly, but the missing spacing causes the subgrid to collapse.

    I don't understand how such a giant corporation, with so many users and a corresponding market share, fails to implement web standards properly. I feel like Safari is the new Internet Explorer.

    #webstandards #w3c #apple #browser #grid

  2. #Safari drives me crazy when it comes to #CSS subgrids. Safari does not apply the subgrid spacing correctly. It recognizes the entire #subgrid span correctly, but the missing spacing causes the subgrid to collapse.

    I don't understand how such a giant corporation, with so many users and a corresponding market share, fails to implement web standards properly. I feel like Safari is the new Internet Explorer.

    #webstandards #w3c #apple #browser #grid

  3. #html #css #grid #subgrid

    Stecke fest … hat jemand Lösungsvorschläge?

    Dass die #items aneinander kleben, ist gewollt. Es geht um die Bilder der Notizhefte und T-Shirts, die ich gerne mittig platzieren möchte. Alle infrage kommenden Eigenschaften mit "center" habe ich durch. Wenn es sich mit einer anderen Angabe beißt, finde ich die nicht.

  4. Concave rounded shape (real transparency, no covers) on @codepen codepen.io/thebabydino/pen/KwM

    `clip-path`/ `mask` on the image have no idea about the dimensions of corner elems. We need another way to create the shape taking into account how those elements are resized by text reflow.

    No magic numbers and no media/ container queries. Instead, we use #subgrid to add the cutout areas to a frame and on #SVG filters to round the shaped frame & to extract just the shaped image.

    #CSS #filter #frontend

  5. Concave rounded shape (real transparency, no covers) on @codepen codepen.io/thebabydino/pen/KwM

    `clip-path`/ `mask` on the image have no idea about the dimensions of corner elems. We need another way to create the shape taking into account how those elements are resized by text reflow.

    No magic numbers and no media/ container queries. Instead, we use #subgrid to add the cutout areas to a frame and on #SVG filters to round the shaped frame & to extract just the shaped image.

    #CSS #filter #frontend

  6. Irregular shaped image with both convex & concave roundings. Shape depends on other elements, how they scale/ wrap. Flexible layout depending on viewport.

    Because someone asked how to
    reddit.com/r/css/comments/1k60

    Live on @codepen codepen.io/thebabydino/pen/LEE

    #CSS #subgrid + #SVG #filter magic.

    #code #coding #frontend #svgFilter #layout #web #dev #webDev #webDevelopment #cssLayout #cssGrid

  7. Irregular shaped image with both convex & concave roundings. Shape depends on other elements, how they scale/ wrap. Flexible layout depending on viewport.

    Because someone asked how to
    reddit.com/r/css/comments/1k60

    Live on @codepen codepen.io/thebabydino/pen/LEE

    #CSS #subgrid + #SVG #filter magic.

    #code #coding #frontend #svgFilter #layout #web #dev #webDev #webDevelopment #cssLayout #cssGrid

  8. ОБЗОР СОВРЕМЕННЫХ ВОЗМОЖНОСТЕЙ CSS. Subgrid

    Subgrid — это возможность использовать сетку (grid) внутри дочерних элементов, сохраняя структуру родительской сетки. Задача: Создать макет сетки с изображениями, где вложенные группы элементов адаптируются по ширине родительской сетки, сохраняя гибкость отступов. Некоторым группам необходимо задать индивидуальные стили — отступы и цвет фона, чтобы визуально выделить их на фоне остальных. Нам нужно чтобы во втором ряду элементы начинались со второй колонки и последний элемент становился четвертой колонкой, а четвертый ряд обладал другим фоном и другими отступами:

    habr.com/ru/articles/898570/

    #css #grid #subgrid #html #frontend #frontendразработка #web #css3 #вебразработка #webпрограммирование

  9. #CSS subgrid help?

    Live test codepen.io/thebabydino/pen/raN with problem: want the same fixed height for description on all card rows

    repeat(3, auto) 😿 different heights for cards on different lines
    repeat(6, auto auto 3lh) 😿 unwanted space below cards widescreen
    auto-fit instead of 6 won't work 😿

    #subgrid #cssLayout #cssGrid #gridLayout #layout #code #coding #frontend #help #web #dev #webDev #webDevelopment

  10. #CSS subgrid help?

    Live test codepen.io/thebabydino/pen/raN with problem: want the same fixed height for description on all card rows

    repeat(3, auto) 😿 different heights for cards on different lines
    repeat(6, auto auto 3lh) 😿 unwanted space below cards widescreen
    auto-fit instead of 6 won't work 😿

    #subgrid #cssLayout #cssGrid #gridLayout #layout #code #coding #frontend #help #web #dev #webDev #webDevelopment

  11. Because this keeps getting asked over and over... subgrid is how you get such cards whose grids align even with varying component heights.

    reddit.com/r/css/comments/1itg

    Both the card wrapper and the cards get `display: grid` and the rest you can see in the Styles panel in DevTools below.

    Live on @codepen

    codepen.io/thebabydino/pen/QwW

    #CSS #layout #cssLayout #cssGrid #gridLayout #code #coding #frontend #reponsive #web #dev #webDev #webDevelopment #subgrid

  12. Because this keeps getting asked over and over... subgrid is how you get such cards whose grids align even with varying component heights.

    reddit.com/r/css/comments/1itg

    Both the card wrapper and the cards get `display: grid` and the rest you can see in the Styles panel in DevTools below.

    Live on @codepen

    codepen.io/thebabydino/pen/QwW

    #CSS #layout #cssLayout #cssGrid #gridLayout #code #coding #frontend #reponsive #web #dev #webDev #webDevelopment #subgrid

  13. Someone asked (yet again) on reddit for that inverted radius tab pattern so here's a pure #CSS solution from me reddit.com/r/css/comments/1ior

    ✨ no extra elements or pseudos needed for effect
    ✨ only need to set border, background, border-radius

    If you also want borders, I made another (hopefully accessible) tabs pattern demo using #SVG #filter and #subgrid to answer another reddit question last year reddit.com/r/css/comments/1fwl

    #cssLayout #code #coding #frontend #web #dev #webDev #webDevelopment #layout

  14. Someone asked (yet again) on reddit for that inverted radius tab pattern so here's a pure #CSS solution from me reddit.com/r/css/comments/1ior

    ✨ no extra elements or pseudos needed for effect
    ✨ only need to set border, background, border-radius

    If you also want borders, I made another (hopefully accessible) tabs pattern demo using #SVG #filter and #subgrid to answer another reddit question last year reddit.com/r/css/comments/1fwl

    #cssLayout #code #coding #frontend #web #dev #webDev #webDevelopment #layout

  15. Found the solution, I think, to the overflowing at mobile sizes, it’s an additional `min()` inside the grid.
    youtu.be/aKFB5Bjk6KM?si=WWKt5t
    @ min 18:00
    Thanks, @kevinpowell #subgrid #CSS #CSSGrid #cssLayout

  16. Found the solution, I think, to the overflowing at mobile sizes, it’s an additional `min()` inside the grid.
    youtu.be/aKFB5Bjk6KM?si=WWKt5t
    @ min 18:00
    Thanks, @kevinpowell #subgrid #CSS #CSSGrid #cssLayout

  17. …And just to round out the scenario, it looks like some of the image alignment can be simplified using the recently supported #subgrid of CSS (like four months ago!).

    youtu.be/IIQa9f0REtM?si=HbPECn

    #CSS #CSSGrid #cssLayout

  18. …And just to round out the scenario, it looks like some of the image alignment can be simplified using the recently supported #subgrid of CSS (like four months ago!).

    youtu.be/IIQa9f0REtM?si=HbPECn

    #CSS #CSSGrid #cssLayout

  19. More on this #Chrome #CSS #subgrid support. I can "Error code: 5" crash a full tab just by applying `grid-template-columns: subgrid;` to an element. Frustrating!

  20. More on this #Chrome #CSS #subgrid support. I can "Error code: 5" crash a full tab just by applying `grid-template-columns: subgrid;` to an element. Frustrating!

  21. #CSS #Subgrid #support (CSS Grid Layout Module Level 2)
    caniuse.com/css-subgrid

    ```
    @supports not (grid-template-columns: subgrid) {
    { display: none } /* xD */
    }
    ```

  22. Finally Subgrid support in Chrome! But uh oh… using #CSS #subgrid - and when I say using, I mean literally just writing one line: `grid-template-rows: subgrid` - makes #Chrome take ages (4-6 seconds) to re-draw the layout upon window resize. #Firefox does this without dropping a frame.

    Early adoption isn't what I'd hoped.

  23. Finally Subgrid support in Chrome! But uh oh… using #CSS #subgrid - and when I say using, I mean literally just writing one line: `grid-template-rows: subgrid` - makes #Chrome take ages (4-6 seconds) to re-draw the layout upon window resize. #Firefox does this without dropping a frame.

    Early adoption isn't what I'd hoped.