thanks, it seems this helps. It still isn't perfect since the responsive ad banners are cropped when resizing the screen, but at least for now it's a good workaround. Thank you!
By the way, please would be possible to add also option to display alternative content in the ad container if the user is blocking ads? I don't want to prevent users from reading whole forums, but kindly ask them to turn their function off, ask them to add an exception, display donate button or alternative ad.
EDIT: The top static modified ad appears, but the bottom (original script from Google) disappears if it doesn't contain mentioned size definition. Unfortunately I can't force define it so easily, because text under it has different length based on screen size. Therefore the ad is not centered.
Also it seems it's problematic to define auto width, which would fill the whole element. And if I define for example
Code: Select all
The magic of responsive units is that they are perfect on almost any screen. Maybe it could be solved by css flex, I will try to play with it…