Nebraska.Code 2025 hosted on Whova

July 23 – 25, 2025, Lincoln, NE

Container Query for “Is There Enough Space Outside This Element?”, by @chriscoyier (@frontendmasters.com):

https://frontendmasters.com/blog/container-query-for-is-there-enough-space-outside-this-element/

#css #containerqueries

Container Query for “is there enough space outside this element?” – Frontend Masters Blog

A container query can contain viewport units, meaning you can compare the window vs the element and make choices.

Using Container Query Units Relative to an Outer Container, by @anatudor (@frontendmasters.com):

https://frontendmasters.com/blog/using-container-query-units-relative-to-an-outer-container/

#css #containerqueries #units

Using Container Query Units Relative to an Outer Container – Frontend Masters Blog

Container units (e.g. cqi) are only able to reference the closest container. But if you register a custom property and set that higher up, you can get your hands on other containers units.

I haven't used style queries much, but just gave them a spin and got an idea (that I've just tested & works) about how we can have ranges in style queries right now. 🥳

That is, red background if --k <= 20, orange background if 20 < --k <= 40 and so on...

#CSS #styleQueries #cssVariables #code #coding #frontend #containerQueries #web #dev #webDev #webDevelopment

#Development #Approaches
CSS container queries unleashed · Where container queries outperform media queries https://ilo.im/1621uq

_____
#Layout #ContainerQueries #GracefulDegradation #ResponsiveDesign #WebDesign #WebDev #Frontend #CSS

Container Queries Unleashed • Josh W. Comeau

Container queries expand the universe of designs that can be implemented, giving us whole new superpowers. Now that container queries are broadly available, I think it’s time we start exploring this potential! In this post, I’ll share the “killer pattern” I can’t stop using in my work, and explore what’s possible with this new capability.

Container Queries Unleashed • Josh W. Comeau

Container queries expand the universe of designs that can be implemented, giving us whole new superpowers. Now that container queries are broadly available, I think it’s time we start exploring this potential! In this post, I’ll share the “killer pattern” I can’t stop using in my work, and explore what’s possible with this new capability.

#Development #Techniques
Conditional CSS grid template areas · A magic formula to “open the gates to layout heaven.” https://ilo.im/161t0f

_____
#Layout #CssGrid #CssNesting #ContainerQueries #LogicalProperties #ResponsiveDesign #WebDesign #WebDev #Frontend #CSS

Conditional CSS grid template areas / Marijke Luttekes

Use a combination of CSS named grid areas and `display: contents;` for ultimate layout flexibility.

Omg. I attempted to debug an issue in safari, where a position: fixed; element didn't correctly align to the viewports edge and I couldn't find out why, until I noticed that it is now relatively positioned to the next element with `container: inline-size;` on it.

Is this how it is supposed to be? This is only the case in safari

#safari #css #containerqueries #html #webdev

🪲 Solved By Modern CSS: Feature Image
by @shadeed9

Using container queries and CSS :has() to build a feature image.

#css #ContainerQueries #has #FeatureImage #webdev

https://ishadeed.com/article/modern-css-feature-image/

Solved By Modern CSS: Feature Image

Using container queries and CSS :has() to build a feature image.