google-adsense icon indicating copy to clipboard operation
google-adsense copied to clipboard

Setting styles on outer div doesnt stop the ad being bigger than the specificed css styles

Open davestar057 opened this issue 4 years ago • 2 comments

In the docs it states "You should place the component inside a container element that has a specified (min/max) width and (min/max) height (which can be based on media queries), or use style or classes on the component to restrict the advertisement to a specific size (or sizes)."

This doesn't seem to stop the ad from displaying whatever auto ad size it wants, much bigger than the specified style... what am I missing?

.gadContainer { border:2px solid red; height: 90px !important; max-height:90px !important; width: 728px !important; max-width:728px !important; display: inline-block; }

davestar057 avatar Aug 12 '21 12:08 davestar057

same issue here

Sirius3615 avatar Mar 27 '22 19:03 Sirius3615

Can you provide a reproduction?

TheAlexLichter avatar Nov 06 '22 13:11 TheAlexLichter