[Skip to main content](#vessel-content)

#   2 column products in mobile display

##

- **[ashx88](/forum/user/48374-ashx88 "View ashx88's Profile")**
- [![ashx88's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/48374-ashx88 "View ashx88's Profile") Topic Author
- [ Offline](/forum/user/48374-ashx88)

Less More

- Posts: 28
- Thank you received: 0
-
-

7 years 8 months ago [\#304623](#304623) by [ashx88](/forum/user/48374-ashx88 "View ashx88's Profile")  *[2 column products in mobile display](/forum/26-product-category-display/897080-2-column-products-in-mobile-display#304623 "Hi,  I have selected 3 products in a row for the normal desktop view. On mobile it breaks into 1 column displaying 1 product, I would like to display 2 columns for mobile view.  Have used the code from the threads below but the codes are not working for me.   www.hikashop.com/forum/product-category-...mber-of-columns.html    www.hikashop.com/forum/search.html?query...ldforums=1&amp;catids=26  How do I achieve the display of 2 column products in mobile? Thank you.")* was created by *[ashx88](/forum/user/48374-ashx88 "View ashx88's Profile")*

Hi,

I have selected 3 products in a row for the normal desktop view. On mobile it breaks into 1 column displaying 1 product, I would like to display 2 columns for mobile view.

Have used the code from the threads below but the codes are not working for me.
[ www.hikashop.com/forum/product-category-...mber-of-columns.html](https://www.hikashop.com/forum/product-category-display/890537-responsive-number-of-columns.html)
[ www.hikashop.com/forum/search.html?query...ldforums=1&amp;catids=26](https://www.hikashop.com/forum/search.html?query=2%20columns%20responsive&childforums=1&catids=26)

How do I achieve the display of 2 column products in mobile? Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTcwODAtMi1jb2x1bW4tcHJvZHVjdHMtaW4tbW9iaWxlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

7 years 8 months ago -  7 years 8 months ago [\#304636](#304636) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[2 column products in mobile display](/forum/26-product-category-display/897080-2-column-products-in-mobile-display#304636 "Hi,  I have selected 3 products in a row for the normal desktop view. On mobile it breaks into 1 column displaying 1 product, I would like to display 2 columns for mobile view.  Have used the code from the threads below but the codes are not working for me.   www.hikashop.com/forum/product-category-...mber-of-columns.html    www.hikashop.com/forum/search.html?query...ldforums=1&amp;catids=26  How do I achieve the display of 2 column products in mobile? Thank you.")*

Hello,

To achived what you need there will be several css command to add in your **frontend css file**.
First have a look on [ **this tutorial**](https://www.hikashop.com/support/documentation/272-hikashop-display-by-color.html#custom), then you have to get the required **@media** (media queries) to add your custom code.

For start and as example this kind of code may do the trick : Code:

@media only screen and (max-width: 600px), (max-device-width: 600px) and (min-device-width: 600px) { .hikashop_column_product_container { width: 49%; display: inline-block; vertical-align: top; } }

Where **@media** define on which **device width** the css command must be applied, and note that above it's **pseudo code**, you have to get the required html class by using the inspector tool to get your required html class.

[ ![&#91;img](https://i.imgur.com/qfVcHsd.png) ](https://i.imgur.com/qfVcHsd.png "&#91;img")

Hope this will help you to achieved what you need.
Regards

Last edit: 7 years 8 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTcwODAtMi1jb2x1bW4tcHJvZHVjdHMtaW4tbW9iaWxlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[davec](/forum/user/7092-davec "View davec's Profile")**
- [![davec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7092-davec "View davec's Profile")
- [ Offline](/forum/user/7092-davec)

Less More

- Posts: 447
- Thank you received: 20
-
-

7 years 5 months ago -  7 years 5 months ago [\#306996](#306996) by [davec](/forum/user/7092-davec "View davec's Profile")  Replied by *[davec](/forum/user/7092-davec "View davec's Profile")* on topic *[2 column products in mobile display](/forum/26-product-category-display/897080-2-column-products-in-mobile-display#306996 "Hi,  I have selected 3 products in a row for the normal desktop view. On mobile it breaks into 1 column displaying 1 product, I would like to display 2 columns for mobile view.  Have used the code from the threads below but the codes are not working for me.   www.hikashop.com/forum/product-category-...mber-of-columns.html    www.hikashop.com/forum/search.html?query...ldforums=1&amp;catids=26  How do I achieve the display of 2 column products in mobile? Thank you.")*

I have managed to achieve this using the following code on a 3 column layout. This takes into account devices up to 960px. This allows for 2 columns on tablet devices and larger screen mobiles. Other adjustments may be required.

Code:

@media only screen and (max-device-width : 961px) { .hkc-md-4 {width:49%;float:left;} .hikashop_product_image_subdiv {width:auto!important;} .hikashop_product_image {height:auto!important;} }

Dave

Last edit: 7 years 5 months ago by [davec](/forum/user/7092-davec "View davec's Profile").

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTcwODAtMi1jb2x1bW4tcHJvZHVjdHMtaW4tbW9iaWxlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bepo](/forum/user/60712-bepo "View bepo's Profile")**
- [![bepo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60712-bepo "View bepo's Profile")
- [ Offline](/forum/user/60712-bepo)

Less More

- Posts: 1
- Thank you received: 0
-
-

5 years 10 months ago [\#328298](#328298) by [bepo](/forum/user/60712-bepo "View bepo's Profile")  Replied by *[bepo](/forum/user/60712-bepo "View bepo's Profile")* on topic *[2 column products in mobile display](/forum/26-product-category-display/897080-2-column-products-in-mobile-display#328298 "Hi,  I have selected 3 products in a row for the normal desktop view. On mobile it breaks into 1 column displaying 1 product, I would like to display 2 columns for mobile view.  Have used the code from the threads below but the codes are not working for me.   www.hikashop.com/forum/product-category-...mber-of-columns.html    www.hikashop.com/forum/search.html?query...ldforums=1&amp;catids=26  How do I achieve the display of 2 column products in mobile? Thank you.")*

Hallo ,
I can't get this option ( I am to stupid for this ![:P](/media/kunena/emoticons/14.png ":P") ![:P](/media/kunena/emoticons/14.png ":P") ) with the view of 2 colums on mobile devices for categories and product listing ( I am not a web designer and know little of coding and css ) what I have to add in the frontend css file I have the starter version ( [ www.robert-dabo.from.hr](http://www.robert-dabo.from.hr) ) coud you please help me.
In the picture is the viev on mobile of product listing in one colum, but I want it to be in 2 colums ( for categories and product listings )
[ ![onecolum.jpg](/forum/attachment/51649) ](/forum/attachment/51649 "onecolum.jpg")

- [ ![onecolum.jpg](/forum/attachment/51649) ](/forum/attachment/51649 "onecolum.jpg") [ ](/forum/attachment/51649?download=1 "onecolum.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTcwODAtMi1jb2x1bW4tcHJvZHVjdHMtaW4tbW9iaWxlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

5 years 10 months ago -  5 years 10 months ago [\#328314](#328314) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[2 column products in mobile display](/forum/26-product-category-display/897080-2-column-products-in-mobile-display#328314 "Hi,  I have selected 3 products in a row for the normal desktop view. On mobile it breaks into 1 column displaying 1 product, I would like to display 2 columns for mobile view.  Have used the code from the threads below but the codes are not working for me.   www.hikashop.com/forum/product-category-...mber-of-columns.html    www.hikashop.com/forum/search.html?query...ldforums=1&amp;catids=26  How do I achieve the display of 2 column products in mobile? Thank you.")*

Hello,

To achived what you need there will be just **one css command** to add in your **frontend css file**.
First have a look on [ **this tutorial**](https://www.hikashop.com/support/documentation/272-hikashop-display-by-color.html#custom), then you have to get the required **@media** (media queries) to add your custom code.

Learn more about the Css **@media** queries in [ **this documentation on the W3school website**](https://www.w3schools.com/css/css3_mediaqueries_ex.asp).

Then, follow the example of in Davec's message, [ **here**](https://www.hikashop.com/forum/product-category-display/897080-2-column-products-in-mobile-display.html#306996) to modify your element **width**, with this kind of command : Code:

.context_page_class .targeted_html_element { width: 49%; }

Hope this will help you to achieved what you needs.
Regards

Last edit: 5 years 10 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTcwODAtMi1jb2x1bW4tcHJvZHVjdHMtaW4tbW9iaWxlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.061 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
