I tried to follow this suggestion.
Quote:
Originally Posted by kdawes01
Scalable Header Image...
To make your header image scaleable by browser width (viewport) you can try the following. In the ATA "Header Image" area go to "Header Image: Height" set it to 0 (yes, zero!) and save. Now go to "HTML/CSS Inserts" area and add the following to "CSS Inserts" Code:
div#imagecontainer { background-size:cover !important; padding-top:23.9%; } This works because css figures top and bottom padding percentages relative to the width of the containing block. Background images will display beneath a block's padding, so if the top padding equals the height of the background image, the whole image will be visible. Even though we set the height to zero, the padding still contributes to the height of the container. |
Code:
div#imagecontainer { background-size:cover !important; padding-top:16.53%; }
Regards,
Alan OldStudent
The unexamined life is not worth living—Socrates
Gracias a la vida, que me ha dado tanto—Violeta Parra