BLACK FRIDAY
Save 59% on PageForge Annual $191/year $485/year
Claim 59% Off →
Responsive Containers icon
Possibly abandoned Tested up to 5.2.28 #1 in container queries

Responsive Containers

CSS media queries let us style elements based on the size of the screen. What if we wanted to style them based on the size of their container? A widget or block should often look different if it’s full-width or…

Active installs10+10+ tier
Downloads · 30d194▲ +16.9% vs prev. 30d
Rating—0 reviews
Health score23/100At risk
All-time downloads3.3KSince Jul 2019
Support resolved—No recent threads
RequiresWP 5.2.0PHP 5.6.20+
Downloads · 7d44▼ -2.2% week over week
Our verdict

Consider an alternative

Responsive Containers shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 7 years ago, and scores 23/100 on our health check.

  • Small user base (10+ active installs)
  • Very few reviews so far
  • No update in 7 years
  • Only tested up to WordPress 5.2 (latest is 7.1)

Daily downloads

3710Jul 2Aug 15Sep 29
Yesterday7
Daily average (1y)4
Peak day14Sep 10, 2026
Last 12 months1.4K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Responsive Containers stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
container queries >100 922 Best container queries plugins →
responsive containers >100 1,208 Best responsive containers plugins →
responsive design >100 5,061 Best responsive design plugins →

Version adoption

Share of active sites per release.

  • 1.1100.0%

About Responsive Containers

From the official readme · v1.1.0

Description

CSS media queries let us style elements based on the size of the screen. What if we wanted to style them based on the size of their container? A widget or block should often look different if it’s full-width or constrained within a column or sidebar, but we didn’t have any way to write container queries to style those elements based on their on-screen width… until now!

This plugin loads a small JavaScript file that conditionally applies classes to elements based on how wide those elements are in the browser. This can be used by other themes and plugins to write container-specific styles for editor blocks or widgets, so that they will display correctly wherever they are placed in the page.

The script works on the frontend and in the block editor — see your responsive styles live while you’re composing your post, and trust that your widgets and blocks will look their best whether they’re full-width or in the narrowest sidebar.

Usage

If you have a block or widget in your site that you wish to use as a responsive container, add the data-responsive-container attribute to that block’s container element. For example, the parent <div> for a calendar block might look like this:

<div class="calendar-block" data-responsive-container>

By adding that data-attribute and nothing more, your container will now be tagged with additional classes based on how big they appear:
– No special class if the container is below 420px (style for this narrow context as your default).
– container-sm if the container is 420px wide or more,
– container-md if it is wider than 600px,
– container-lg if it is wider than 720px, and
– container-xl for any element 960px or wider.

These are default values and therefore somewhat arbitrary, so you may also provide your own custom theme- or plugin-specific breakpoint values using the data-responsive-container attribute. When rendering your element or block in PHP, pass an array of class names and the minimum width at which each class should be applied. These class names can be generic like the default .container-* classes, or they may be specific to the element being styled:

echo sprintf(
  '<div class="myblock" data-responsive-container="%s">',
  esc_attr( wp_json_encode( [
    'myblock--2-column' => 600,
    'myblock--3-column' => 900,
  ] )
);

In this example your container would receive the .myblock--2-column class from 600px up, and .myblock--3-column at or above 900px.

Note that in this case the .myblock element receives no custom class below 600px. We don’t apply any class names below your specified minimum because we assume styles are written narrow-context-first, but you may ensure your smallest class is always applied by providing a minimum width of 0:

echo sprintf(
  '<div class="myblock" data-responsive-container="%s">',
  esc_attr( wp_json_encode( [
    'myblock--1-column' => 0, // Will apply in all circumstances.
    'myblock--2-column' => 600,
    'myblock--3-column' => 900,
  ] )
);

From within WordPress

  1. Visit ‘Plugins > Add New’
  2. Search for ‘Responsive Containers’
  3. Activate the Responsive Containers plugin from your Plugins page.
  4. Start using data-responsive-container attributes within your theme or plugin.

Manually

  1. Upload the responsive-containers folder to the /wp-content/plugins/ directory
  2. Activate the Responsive Containers plugin from your Plugins page.
  3. Start using data-responsive-container attributes within your theme or plugin.

License & Attribution

This plugin is licensed under the terms of the GNU General Public License (or “GPL”). It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

It was created by K. Adam White at Human Made, based on a concept popularized by Philip Walton.

This plugin utilizes the resize-observer-polyfill library by Denis Rul, released under the MIT license and © 2016 Denis Rul.

Changelog

1.1

  • Alter class application logic to always apply classes once their minimum threshold width has been met or exceeded.
  • Adjust default breakpoint cutoffs.
  • Adjust README formatting to fix code block rendering issues.
  • Begin work to support usage within the block editor.
  • Un-document the responsive_container_breakpoints() method until it is confirmed to be a useful helper.

1.0

  • Loads responsive-containers.js to observe and decorate data-responsive-container elements.
  • Introduces responsive_container_breakpoints() method to render a stringified & attribute-escaped custom breakpoints array.

Full changelog on WordPress.org →

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

FAQ

Responsive Containers: quick answers

Straight answers, pulled from live WordPress.org data.

Live data from WordPress.org · checked Sep 30, 2026

Is Responsive Containers free?

Yes. Responsive Containers is free to download and use from the official WordPress.org plugin directory.

Is Responsive Containers safe to use in 2026?

Responsive Containers shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 7 years ago, and scores 23/100 on our health check.

How many websites use Responsive Containers?

Responsive Containers is active on 10+ WordPress websites and has been downloaded 3,258 times since it launched in July 2019. It was downloaded 194 times in the last 30 days.

Does Responsive Containers work with WordPress 7.1?

Responsive Containers is officially tested up to WordPress 5.2.28, while the latest release is 7.1.2. It may still work, but try it on a staging site first.

What PHP version does Responsive Containers need?

Responsive Containers requires PHP 5.6.20 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Responsive Containers last updated?

The latest version, 1.1.0, was released on July 20, 2019 (7 years ago).

Who makes Responsive Containers?

Responsive Containers is developed and maintained by K. Adam White.

Powered by PageForge

Want thousands of pages that rank like these? Build them in an afternoon.

This directory runs on the same engine as PageForge. Turn any spreadsheet, CSV or API into thousands of fast, SEO-ready WordPress pages — with schema, internal links and AI-written copy baked in.

  • CSV, Google Sheets & API data sources
  • AI content, schema & internal links per page
  • Works with Elementor, Gutenberg, Yoast & Rank Math
  • Free on WordPress.org — no credit card
Sarah is here to help!
Hi there! 👋 Need help finding what you're looking for?
Sarah
Sarah
Online & Ready to Help
Hi there! 👋 Need help finding what you're looking for?

We'll use this to continue our conversation

Just now ✓ Verified

Join 500+ SEO Pros Scaling Their Strategy

Get exclusive programmatic SEO tactics, AI content workflows, and the latest PageForge updates delivered straight to your inbox. Stay ahead of the algorithm.

We care about your data in our privacy policy.