Can't figure out why CSS changes the format of my images on smaller devices -


i scratching head on issue on this woocommerce-site. product images , normal on desktop, distorted , squeezed when sizing down size of ipad or iphone.

the thing is: can't find out why. there no media queries , image format fixed. not seeing?

thank taking look.

to answer shortly: because style of images computed dynamically. (on high resolution) images have following style:

.woocommerce .product-style-0 .image img {     height: 203px;     width: 274px; } 

this style causes image have fixed width: 274px , fixed height 203px;

when size down browser (to small resollution) element has style:

.woocommerce .product-style-0 .image, .woocommerce .product-style-0 .image img, .woocommerce .product-style-1 .image, .woocommerce .product-style-1 .image img {     height: auto;     width: 100%; } 

this makes image acquire 100% of width of div container located in. efficiently takes 100% width of screen on small resolution.

this not mistake though. basing shop on woocommerce sollution , acquired template created according responsive web design principle. themes created using idea makes sure template has usability on devices small resolution.

as consequence of using responsice web design theme using tries make image big on small resolution readable end user.

btw: filtering menu on right-hand side hidden on small resolution in order not consume precious space.

edit: , make answer straightforward.... if still wondering why picture looks bad? when 100% width gets "recalculated" width of 392px (it widest form) original image has 274px, browser scales up, loosing quality.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -