# AdSense Responsive Ads

**URL:** https://meta.discourse.org/t/adsense-responsive-ads/63991
**Category:** Support
**Tags:** advertising
**Created:** [June 5, 2017, 9:02pm UTC](https://meta.discourse.org/t/adsense-responsive-ads/63991 "2017-06-05T21:02:06Z")
**Posts on this page:** 1
**Showing post:** 29

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [November 19, 2019, 3:20pm UTC](https://meta.discourse.org/t/adsense-responsive-ads/63991/29 "2019-11-19T15:20:59Z")

</div>

I don’t know what you’re proposing, but I found [this article](https://support.google.com/adsense/answer/9467650) that seems to say that responsive ads can ignore their containers now.

> …responsive ad units can now resize the HTML parent container (e.g. `<div>` ) that they’re within. This allows them to automatically adapt to all the different ad sizes on publishers’ pages.
> 
> Note that for responsive ad units to work properly, they must not be placed inside a container with a fixed or limited height.

Cool. ☹

> If you want to limit the height of your responsive ads, you’ll need to modify your responsive ad code…

> `<ins class="adsbygoogle" style="display:inline-block;min-width:400px;max-width:970px;width:100%;height:90px"`

So do the same thing as the way it worked before with containers and css, but do it with inline styles instead to let Google “automatically adapt to all the different ad sizes” whatever that means.

_BUT_ their examples show that using CSS should still work: @ljpp see this article:

> **[How to modify your responsive ad code - Google AdSense Help](https://support.google.com/adsense/answer/9183363)**
>
> If you find that our responsive ad code doesn't do everything you need, you may modify your ad code to better meet the requirements of your responsive site. The examples in this article show you how

Are you sure you haven’t tried using CSS to control the max width/height of the responsive units? The two articles contradict each other, so maybe their examples are obsolete.

---

_[View the full topic](https://meta.discourse.org/t/adsense-responsive-ads/63991)._
