home.social

#csslayout β€” Public Fediverse posts

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

  1. My take on `box-sizing: border-box` reddit.com/r/css/comments/1tbl

    TL;DR unlearn adding it to the reset, as well as setting dimensions (width/ height) explicitly.

    πŸ‘‹ to @kevinpowell for giving me a video to link to πŸ˜€

    πŸ‘‹ to @mia for the cool article on `body` margin to reference 😎

    #CSS #code #coding #cssLayout #web #dev #webDev #webDevelopment

  2. So I saw a demo in the @codepen Spark and I liked the idea, but it was too JS-heavy for my taste, plus I would have preferred the rotation animations to be "hinged" around the top/ bottom edge depending on direction.

    So I did it with pure #CSS on scroll codepen.io/thebabydino/pen/JoK

    cc @bramus

    #cssScrollAnimation #scrollEffect #code #cssTransforms #cssTransform #css3D #3D #coding #frontend #cssLayout #web #dev #webDev #webDevelopment #cssGrid #cssFlex #flexbox #cssVariables #cssTransition

  3. The tiny details make the difference - check out those roundings in the cards demo!

    Even cooler: the shape depends on the size of the sibling it wraps around, no magic numbers. If we need the shape to grow (for ex if we want it to have more content), there's no need to change any clip-path or mask.

    #CSS #SVG #filter #svgFilter #cssSubgrid #cssLayout #cssGrid

  4. This is what I see browsers actually doing: what I want in my simple, no wrap use case.

    Slightly different things in the hypothetical case.

    Chrome, Firefox, Epiphany below.

    Also, please don't make fun of my browser themes. I'm a visual person, so I use themes that visually differentiate one browser from another.

    #CSS #cssGrid #cssLayout

  5. Wake up, wake up, wake up!

    If you're a Cheetah+ supporter on Ko-fi or Patreon, then first of all thank you πŸ™ and second, I've just published a massive post about an improved technique for flexible irregular shapes.

    ❇️ ko-fi.com/post/New-year-new-te

    ❇️ patreon.com/posts/new-year-new

    #CSS #SVG #filter #cssGrid #cssLayout #cssSubgrid #containerQueryUnits #code #container #svgFilter #coding #frontend #web #dev #webDev #webDevelopment

  6. Fit an integer number of columns of a certain minimum width within parent, overflow the rest - live on @codepen codepen.io/thebabydino/pen/EaP

    Details on technique in this public Ko-fi post ko-fi.com/Post/Fit-an-integer- - if this helps you in any way, please remember praise doesn't keep me afloat financially... but you can! And consider supporting my work by becoming a monthly supporter or with a one time tip.

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