I am using cycle.js, but the site is responsive.
I'd like to be able to use a large image (big enough for the full screen version) and then use max-width:100%
on the image to reduce it's width based on the screen size.
Problem is that cycle.js
overrides with inline styles based on whatever size the image is. So if it's 800x600
then it will always display at that size, regardless of whether the containing div's width is 100px or 1000px
Code:
<div id="rightCol">
<div class="slideshow">
<img src="http://4.bp.blogspot.com/-PGEqrdJBKmc/T_xe7hoz0yI/AAAAAAAAA0w/vKDMnf-5p7o/s1600/cat+5.jpg" />
<img src="http://4.bp.blogspot.com/-PGEqrdJBKmc/T_xe7hoz0yI/AAAAAAAAA0w/vKDMnf-5p7o/s1600/cat+5.jpg" />
<img src="http://4.bp.blogspot.com/-PGEqrdJBKmc/T_xe7hoz0yI/AAAAAAAAA0w/vKDMnf-5p7o/s1600/cat+5.jpg" />
<img src="http://4.bp.blogspot.com/-PGEqrdJBKmc/T_xe7hoz0yI/AAAAAAAAA0w/vKDMnf-5p7o/s1600/cat+5.jpg" />
</div>
</div>
rightCol{
width:72.5%;
float:right;
}
slideshow {
width:100%
}
slideshow img{
max-width:100%;
}