Mastering CSS Subgrid: Unlock Advanced Web Layouts

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 6

  • @webbae
    @webbae 2 месяца назад +4

    What I found is that in design mode, Webflow creates a style attached to the grid id with minmax(75px, auto) even though on the UI it shows the rows as auto. Similar to the .wf-empty class which has padding right and bottom of 75px, it makes things selectable in designer mode. If you switch the preview mode, everything works as expected!
    As you ended up doing, we can manually override the grid-template-rows property with minmax(min-content, max-content). In my playground, I used CSS Custom properties to set grid-template-rows: auto !important. Then everything works as expected in designer!

    • @olliemcmillan
      @olliemcmillan 2 месяца назад +1

      Ahhhh that's why we have default 75px padding on empty divs. Every day is a school day!

    • @vipulkumar1725
      @vipulkumar1725 2 месяца назад

      Amazing

  • @rolandaichhorn4146
    @rolandaichhorn4146 2 месяца назад

    Great explained, thanks!

  • @stinkleaf
    @stinkleaf 2 месяца назад

    Sounds like the old days of layouts with nested tables and spans.

  • @davidschaer
    @davidschaer Месяц назад

    i now know less then before 😵‍💫