Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi there, we have a 336x280 pixel adsense block injected in the middle of our content, and after upgrading to Corporate Clean 7.x-2.0, the adsense block is getting its HEIGHT cut off.
Please help!
Thanks!
Comments
Comment #1
gtsopour CreditAttribution: gtsopour commentedHello,
please edit your style.css (sites/all/themes/corporateclean/style.css) and make the following change at the bottom of your stylesheet:
Change from
To
I will commit this fix immediately.
Thanks
/George
Comment #2
mntash CreditAttribution: mntash commentedThanks... I made the change but am still having the issue :(
Comment #3
Zwappe CreditAttribution: Zwappe commentedThis is according to me related to the same problem I have/had, see here
Instead of
height: auto;
I usedmax-height:100%;
then it should work, but I still wonder why theheight: auto;
does not work...Comment #4
mntash CreditAttribution: mntash commentedZwappe: thank you very much for your suggestion. Changing height to 100% worked for me!
Should I use
max-height: 100%
or should I useheight: 100%
?Right now I am using just
height: 100%
and it seems to work. I will look for other side effects..Comment #5
Zwappe CreditAttribution: Zwappe commentedHey,
I'm glad it helped you out!
I think that in this case it doesn't matter if you use max-height or just height, because there is no height defined in the theme (unlike with the width). So in that case both of them would mean almost the same. I'm not 100% sure of this, maybe gtsopour can answer this?
Comment #6
gtsopour CreditAttribution: gtsopour commentedComment #7
gtsopour CreditAttribution: gtsopour commentedRemove custom width/height definitions for embed, object, iframe - http://drupal.org/node/1900134