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

#   media query to set number of columns

##

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile") Topic Author
- [ Offline](/forum/user/31479-lumiga)

Less More

- Posts: 640
- Thank you received: 26
-
-
-

9 years 1 month ago [\#278741](#278741) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  *[media query to set number of columns](/forum/26-product-category-display/892015-media-query-to-set-number-of-columns#278741 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.7.5 -- PHP version -- : 7  Hi Hikashop team,  I have a responsive question.  We are building a mobilefirst webshop with Yootheme PRO. So far so good ;-)  I made some Media queries to set the number of columns for categories and products.  But I don't know why it's working fine from 6 to 5 to 4 colums but after 4 columns it goes directly to 1 column. Is this a template issue or is there something I need to know about Hikashop why this happen? In the menu category and products options I have set the colums to 3.  Hope you can give me a hint.  Kind regards, Lumiga  @media only screen and (max-width: 1900px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 16.66% !important;} }  @media only screen and (max-width: 1600px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 20% !important;} }  @media only screen and (max-width: 1100px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 25% !important;} }  @media only screen and (max-width: 756px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 50% !important;} }  @media only screen and (max-width: 320px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 100% !important;} }")* was created by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")*

-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.7.5
-- PHP version -- : 7

Hi Hikashop team,

I have a responsive question.

We are building a mobilefirst webshop with Yootheme PRO.
So far so good ![;-)](/media/kunena/emoticons/24.png ";-)")

I made some Media queries to set the number of columns for categories and products.

But I don't know why it's working fine from 6 to 5 to 4 colums but after 4 columns it goes directly to 1 column.
Is this a template issue or is there something I need to know about Hikashop why this happen?
In the menu category and products options I have set the colums to 3.

This message contains confidential information

Hope you can give me a hint.

Kind regards,
Lumiga

@media only screen and (max-width: 1900px) {
.hikashop_subcategories div.hikashop_category, .hikashop_products_listing div.hikashop_product
{width: 16.66% !important;}
}

@media only screen and (max-width: 1600px) {
.hikashop_subcategories div.hikashop_category, .hikashop_products_listing div.hikashop_product
{width: 20% !important;}
}

@media only screen and (max-width: 1100px) {
.hikashop_subcategories div.hikashop_category, .hikashop_products_listing div.hikashop_product
{width: 25% !important;}
}

@media only screen and (max-width: 756px) {
.hikashop_subcategories div.hikashop_category, .hikashop_products_listing div.hikashop_product
{width: 50% !important;}
}

@media only screen and (max-width: 320px) {
.hikashop_subcategories div.hikashop_category, .hikashop_products_listing div.hikashop_product
{width: 100% !important;}
}

---

Kind regards,
Lumiga

The following user(s) said Thank You: [Valserine](/forum/user/58689-valserine "View Valserine's Profile")

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86560
- Thank you received: 14307
-
-

9 years 1 month ago [\#278750](#278750) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[media query to set number of columns](/forum/26-product-category-display/892015-media-query-to-set-number-of-columns#278750 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.7.5 -- PHP version -- : 7  Hi Hikashop team,  I have a responsive question.  We are building a mobilefirst webshop with Yootheme PRO. So far so good ;-)  I made some Media queries to set the number of columns for categories and products.  But I don't know why it's working fine from 6 to 5 to 4 colums but after 4 columns it goes directly to 1 column. Is this a template issue or is there something I need to know about Hikashop why this happen? In the menu category and products options I have set the colums to 3.  Hope you can give me a hint.  Kind regards, Lumiga  @media only screen and (max-width: 1900px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 16.66% !important;} }  @media only screen and (max-width: 1600px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 20% !important;} }  @media only screen and (max-width: 1100px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 25% !important;} }  @media only screen and (max-width: 756px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 50% !important;} }  @media only screen and (max-width: 320px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 100% !important;} }")*

Hi,

You don't have a float:left; for widths below 992px.
So on that page, with a screen/windows below that width, the divs don't float and thus you have one of them per row, no matter what width you set for each one.

The following user(s) said Thank You: [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")

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

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile") Topic Author
- [ Offline](/forum/user/31479-lumiga)

Less More

- Posts: 640
- Thank you received: 26
-
-
-

9 years 1 month ago [\#278847](#278847) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  Replied by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")* on topic *[media query to set number of columns](/forum/26-product-category-display/892015-media-query-to-set-number-of-columns#278847 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.7.5 -- PHP version -- : 7  Hi Hikashop team,  I have a responsive question.  We are building a mobilefirst webshop with Yootheme PRO. So far so good ;-)  I made some Media queries to set the number of columns for categories and products.  But I don't know why it's working fine from 6 to 5 to 4 colums but after 4 columns it goes directly to 1 column. Is this a template issue or is there something I need to know about Hikashop why this happen? In the menu category and products options I have set the colums to 3.  Hope you can give me a hint.  Kind regards, Lumiga  @media only screen and (max-width: 1900px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 16.66% !important;} }  @media only screen and (max-width: 1600px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 20% !important;} }  @media only screen and (max-width: 1100px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 25% !important;} }  @media only screen and (max-width: 756px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 50% !important;} }  @media only screen and (max-width: 320px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 100% !important;} }")*

Thank you very much !!!!

I just want to say how happy I am with the support from Hikashop.
That gives confidence in the product for now and in the future.
That's what we need as web developers ![:)](/media/kunena/emoticons/3.png ":)") ![:)](/media/kunena/emoticons/3.png ":)") ![:)](/media/kunena/emoticons/3.png ":)")

See you soon.

Kind regards,
Lumiga

---

Kind regards,
Lumiga

The following user(s) said Thank You: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTIwMTUtbWVkaWEtcXVlcnktdG8tc2V0LW51bWJlci1vZi1jb2x1bW5zP3RtcGw9bWFya2Rvd24=) 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
-
-

9 years 1 month ago -  9 years 1 month ago [\#278850](#278850) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[media query to set number of columns](/forum/26-product-category-display/892015-media-query-to-set-number-of-columns#278850 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.7.5 -- PHP version -- : 7  Hi Hikashop team,  I have a responsive question.  We are building a mobilefirst webshop with Yootheme PRO. So far so good ;-)  I made some Media queries to set the number of columns for categories and products.  But I don't know why it's working fine from 6 to 5 to 4 colums but after 4 columns it goes directly to 1 column. Is this a template issue or is there something I need to know about Hikashop why this happen? In the menu category and products options I have set the colums to 3.  Hope you can give me a hint.  Kind regards, Lumiga  @media only screen and (max-width: 1900px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 16.66% !important;} }  @media only screen and (max-width: 1600px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 20% !important;} }  @media only screen and (max-width: 1100px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 25% !important;} }  @media only screen and (max-width: 756px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 50% !important;} }  @media only screen and (max-width: 320px) { .hikashop&#95;subcategories div.hikashop&#95;category, .hikashop&#95;products&#95;listing div.hikashop&#95;product {width: 100% !important;} }")*

Hello,

Thanks for this return !
Feel free to express your satisfaction on the Joomla Extension Directory, **[ **here**](https://extensions.joomla.org/extensions/extension/e-commerce/shopping-cart/hikashop/)**

Thanks for supporting HikaShop.

Regards

Last edit: 9 years 1 month ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTIwMTUtbWVkaWEtcXVlcnktdG8tc2V0LW51bWJlci1vZi1jb2x1bW5zP3RtcGw9bWFya2Rvd24=) 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.070 seconds

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