jquery - Javascript injection overriding CSS for responsive slider -
i'm using cycle slider malsup , i'm having trouble injection of inline css styles.
if navigate http://cirrusfitness.com see have slider working , functional.
the issue comes play when resize browser test responsiveness. appears after 980px breakpoint, image seems shrink disproportionately container. leaving tiny image , large white space.
i have tried using css background-size: cover applying fixed h/w ratios .item class have had no luck.
any great..
this seems problem when actively re-sizing browser window mouse. plugin seems putting inline style static height on #hompage-slider_content when loads. when scale browser window down past 980px mark reload page you'll notice won't have massive white space anymore because plugin calculate right height when loads.
to fix may have attach event window resize event , update #hompage-slider_content new inline height.
Comments
Post a Comment