• I want to add media queries:

    .example_responsive_1 { width: 320px; height: 100px; }
    @media(min-width: 500px) { .example_responsive_1 { width: 468px; height: 60px; } }
    @media(min-width: 800px) { .example_responsive_1 { width: 728px; height: 90px; } }

    But it seems to be broken (in fact, the colors are red for min-width: for example).

Viewing 1 replies (of 1 total)
  • Thread Starter darkgaze

    (@darkgaze)

    By the way, I’d add some recommendation in the FAQ to fix this. In case your ad doesn’t adapt to the size of the container:

    Add a new name to the class of the adsense code:

    <ins class=”adsbygoogle adsense-inarticle” …

    And create a new rule with a custom css plugin:

    .adsense-inarticle { width: inherit; margin-top: 50px; margin-bottom: 50px;}

    That will make it work and choose the one that fits to that size.

Viewing 1 replies (of 1 total)

The topic ‘Media queries?’ is closed to new replies.