css - Image resizing to 100% in responsive design -
i have wordpress site child theme of twenty twelve. has image red lion hotel towards bottom of page: http://ranchocordovaeventscenter.com/partner-hotels/
it automatically sizing fill 100% of table in. tried adding outside of table , same thing. if change image same.
here html:
<a target="_blank" href="http://www.redlion.com/our-hotels/california/rancho-cordova/"> <img class="size-full wp-image-423 alignleft" width="150" height="169" src="http://ranchocordovaeventscenter.com/wp-content/uploads/2013/01/redlion.jpg" alt="red lion hotel" title="red lion hotel"> </a>
and applicable css:
img { border: 0 none; max-width: 540px; width: 100%; }
i know have set width: 100% when site resizes smaller devices, larger images stay within screen.
any tips appreciated, thanks!
change width max-width:
img { max-width: 100%; }
that should trick.
Comments
Post a Comment