#containerquery — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #containerquery, aggregated by home.social.
-
I have a new article out!
Super Simple Full-Bleed & Breakout Styles
https://frontendmasters.com/blog/super-simple-full-bleed-breakout-styles/ - 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
-
BTW, the CSS is heavily commented. And I've changed the images to something a bit more fitting for this time of year.
https://codepen.io/thebabydino/details/WbrjrZM
And now you can tell what gave me the idea for yesterday's challenge https://mastodon.social/@anatudor/115337483292849914
#CSS #Maths #layout #cssLayout #cssGrid #trigonometry #code #coding #frontend #transform #cssTransform #cssClipPath #clipping #clipPath #containerQueries #containerQuery #webDevelopment #web #dev #webDev
-
Because this got asked on reddit https://www.reddit.com/r/css/comments/1o069yi/comment/ni8evf4/
Made a demo with various options for angled grid columns. Uses mathematical computations to ensure all fits just right all the time, regardless of viewport or number of columns.
On @codepen https://codepen.io/thebabydino/pen/WbrjrZM
Enjoy!
#CSS #Maths #layout #cssLayout #cssGrid #trigonometry #code #coding #frontend #transform #cssTransform #cssClipPath #clipping #clipPath #containerQueries #containerQuery #webDevelopment #web #dev #webDev
-
#tinyCSStip We can have boolean logic in container queries!
And this works cross-browser!
Live test on @codepen: https://codepen.io/thebabydino/pen/QwbNNpz
More info on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/@container#logical_keywords_in_container_queries
#CSS #cssLayout #containerQuery #coding #web #dev #webDev #webDevelopment #code #frontend
-
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 https://codepen.io/thebabydino/pen/ogvZdoZ?editors=1101
¹here https://www.reddit.com/r/css/comments/1hhf4x3/comment/m2s81yr/
#CSS #aspectRatio #code #coding #web #frontend #dev #webDevelopment #webDev #containerQuery #containerQueryUnits #container
-
#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 https://codepen.io/thebabydino/pen/ZEgjpYL
#CSS #container #containerQuery #layout #cssLayout #grid #cssGrid #frontend #code #web #dev #webDev #webDevelopment #coding #containerQueryUnits
-
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.
https://www.patreon.com/posts/swap-channels-98985162
#svg #svgFilter #css #cssLayout #code #cssSubgrid #containerQuery #cssGrid #coding #webDev #webDevelopment #frontend
-
#Development #Techniques
Rebuilding a comment component with modern CSS · How to craft a state-of-the-art CSS comment section https://ilo.im/13js3h_____
#Comments #WebDevelopment #WebDev #Frontend #CSS #CssSubgrid #ContainerQuery #StyleQuery #LogicalProperty #Layout #TextAlignments #Avatars #Emoji