home.social

#containerquery — Public Fediverse posts

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

  1. I have a new article out!

    Super Simple Full-Bleed & Breakout Styles
    frontendmasters.com/blog/super - my take on an old problem using modern CSS solutions.

    Using a spooky made up Halloween recipe to illustrate concepts.

    PS @chriscoyier told me to be proud of it 😛

    #CSS #cssLayout #cssGrid #cssVariables #containerQueries #containerQuery #code #web #webDev #webDevelopment #dev #coding #frontend #Halloween

  2. #tinyCSStip

    Pretty sure I've posted about this before, but a quick search at the morning hours didn't find it, plus I saw someone ask about it yet again¹, so... fixed aspect-ratio box within variable size container!

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

    ¹here reddit.com/r/css/comments/1hhf

    #CSS #aspectRatio #code #coding #web #frontend #dev #webDevelopment #webDev #containerQuery #containerQueryUnits #container

  3. #tinyCSStip Container queries on the body? Why, when media queries have better support?

    Well, container queries make it an IF depending on the width of the body's content-box.

    That is, subtracting the scrollbar IF we have one (we can't know).

    **Heavily** commented @codepen demo codepen.io/thebabydino/pen/ZEg

    #CSS #container #containerQuery #layout #cssLayout #grid #cssGrid #frontend #code #web #dev #webDev #webDevelopment #coding #containerQueryUnits

  4. If you're a $5+ patron on Patreon, I've just posted a very special and cool interactive demo. With explanations about the concepts it illustrates + the demo itself is heavily commented as the viewport-adaptive layout part is very interesting too.

    patreon.com/posts/swap-channel

    #svg #svgFilter #css #cssLayout #code #cssSubgrid #containerQuery #cssGrid #coding #webDev #webDevelopment #frontend