Stack items when mobile with Magento 1.9 and RWD theme -


i found lot of posts none of them show clear answer works: how can display 3 items in row when user desktop , stack them vertically when in mobile?

i see possible no hacking product grid (but products shown 2 row), can use similar same result.

i have created sample able show 3 items when desktop , show 2 in row , 1 in another. that's close want:

<ul class="products-grid products-grid--max-4-col first last odd"> <li><img alt="" src="http://192.241.128.153/media/wysiwyg/index/pencil.jpg" /> <div class="product-info" style="min-height: 167px;"> <h2>assine</h2> </div> </li> <li><img alt="" src="http://192.241.128.153/media/wysiwyg/index/pencil.jpg" /> <div class="product-info" style="min-height: 167px;"> <h2>vote</h2> </div> </li> <li><img alt="" src="http://192.241.128.153/media/wysiwyg/index/pencil.jpg" /> <div class="product-info" style="min-height: 148px;"> <h2>receba</h2> </div> </li> </ul> 

thanks!

you can achieve using media query in css such as..

 @media screen , (max-width: 770px) {       .products-grid li {            width: 100%;       }  } 

don't forget product list version too.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -