# Solved By Modern CSS: Feature Image

DevFeed: [Solved By Modern CSS: Feature Image](<https://devfeed.tech/articles/solved-by-modern-css-feature-image-45355.md>)

Original publisher: [Read original article](<https://ishadeed.com/article/modern-css-feature-image/>)

Author: Ahmad Shadeed

Published: 2024-12-10T00:00:00Z

Content type: tutorial

Language: en

Sources: [Ahmad Shadeed](<https://devfeed.tech/sources/ahmad-shadeed.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [container](<https://devfeed.tech/topics/container.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [layout](<https://devfeed.tech/topics/layout.md>), [Media Queries](<https://devfeed.tech/topics/media-queries.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [container](<https://devfeed.tech/tags/container.md>), [css](<https://devfeed.tech/tags/css.md>), [design](<https://devfeed.tech/tags/design.md>), [feature](<https://devfeed.tech/tags/feature.md>), [has](<https://devfeed.tech/tags/has.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [layout](<https://devfeed.tech/tags/layout.md>)

## AI overview

A tutorial on using CSS container queries and the :has() selector to make a feature-image component switch between stacked and circular layouts based on its container width.

## Source excerpt

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