# Container queries in Themes?

**URL:** <https://meta.discourse.org/t/container-queries-in-themes/299366>\
**Category:** Development\
**Created:** [March 14, 2024, 4:48pm UTC](https://meta.discourse.org/t/container-queries-in-themes/299366 "2024-03-14T16:48:25Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [March 16, 2024, 10:58am UTC](https://meta.discourse.org/t/container-queries-in-themes/299366/4 "2024-03-16T10:58:12Z")

</div>

I believe I’ve isolated my issue: containers can’t be tables, looks like they must be divs.

I created a pen which had two identical containers, except one was a table.

The container query fails on the table, but succeeds on the otherwise almost identical div.

the ultimate solution here was moving the container up to `#list-area` which is a `div` and that solved my issue!

Really appreciate you looking at this, because confirming it should work in themes (to the extent that it does) gave me that all-important extra impetus!

---

_[View the full topic](https://meta.discourse.org/t/container-queries-in-themes/299366)._
