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

#   characteristics / option box responsive?

##

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

Less More

- Posts: 14
- Thank you received: 1
-
-

9 years 6 months ago -  9 years 6 months ago [\#268835](#268835) by [OA](/forum/user/49270-oa "View OA's Profile")  *[characteristics / option box responsive?](/forum/26-product-category-display/890103-characteristics-option-box-responsive#268835 "Hello,  I am trying to get the product characteristics / options responsive working well on a mobile device. |Therefore I added the following lines in the front.css. This works fine for the mobile devices, but when it opens in the normal webpage the width of the options box is not set to 100% anymore (see picture 1). When I disable these lines the options box is getting the full width, but then the responsive is not working well (see picture 2). I think I missed something, any Ideas?  .hikashop&#95;product&#95;characteristics, .hikashop&#95;product&#95;options{ width: auto !important; }  .hikashop&#95;product&#95;characteristics&#95;table select, .hikashop&#95;product&#95;options&#95;table select { width: auto !important; }")* was created by *[OA](/forum/user/49270-oa "View OA's Profile")*

Hello,

I am trying to get the product characteristics / options responsive working well on a mobile device.
&#124;Therefore I added the following lines in the front.css. This works fine for the mobile devices, but when it opens in the normal webpage the width of the options box is not set to 100% anymore (see picture 1). When I disable these lines the options box is getting the full width, but then the responsive is not working well (see picture 2). I think I missed something, any Ideas?

.hikashop_product_characteristics, .hikashop_product_options{
width: auto !important;
}

.hikashop_product_characteristics_table select, .hikashop_product_options_table select {
width: auto !important;
}

- [ ![1&#95;2017-05-05.JPG](/forum/attachment/37968) ](/forum/attachment/37968 "1&#95;2017-05-05.JPG") [ ](/forum/attachment/37968?download=1 "1&#95;2017-05-05.JPG")
- [ ![2&#95;2017-05-05.JPG](/forum/attachment/37969) ](/forum/attachment/37969 "2&#95;2017-05-05.JPG") [ ](/forum/attachment/37969?download=1 "2&#95;2017-05-05.JPG")

Last edit: 9 years 6 months ago by [OA](/forum/user/49270-oa "View OA's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTAxMDMtY2hhcmFjdGVyaXN0aWNzLW9wdGlvbi1ib3gtcmVzcG9uc2l2ZT90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

9 years 6 months ago [\#268842](#268842) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[characteristics / option box responsive?](/forum/26-product-category-display/890103-characteristics-option-box-responsive#268842 "Hello,  I am trying to get the product characteristics / options responsive working well on a mobile device. |Therefore I added the following lines in the front.css. This works fine for the mobile devices, but when it opens in the normal webpage the width of the options box is not set to 100% anymore (see picture 1). When I disable these lines the options box is getting the full width, but then the responsive is not working well (see picture 2). I think I missed something, any Ideas?  .hikashop&#95;product&#95;characteristics, .hikashop&#95;product&#95;options{ width: auto !important; }  .hikashop&#95;product&#95;characteristics&#95;table select, .hikashop&#95;product&#95;options&#95;table select { width: auto !important; }")*

Hi,

You should encapsulate your CSS within a @media CSS tag so that you can have it apply only for some width and not others. That way, it won't break the display on mobile devices.
[ www.w3schools.com/cssref/css3\_pr\_mediaquery.asp](https://www.w3schools.com/cssref/css3_pr_mediaquery.asp)

The following user(s) said Thank You: [OA](/forum/user/49270-oa "View OA's Profile")

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

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

Less More

- Posts: 14
- Thank you received: 1
-
-

9 years 6 months ago [\#268872](#268872) by [OA](/forum/user/49270-oa "View OA's Profile")  Replied by *[OA](/forum/user/49270-oa "View OA's Profile")* on topic *[characteristics / option box responsive?](/forum/26-product-category-display/890103-characteristics-option-box-responsive#268872 "Hello,  I am trying to get the product characteristics / options responsive working well on a mobile device. |Therefore I added the following lines in the front.css. This works fine for the mobile devices, but when it opens in the normal webpage the width of the options box is not set to 100% anymore (see picture 1). When I disable these lines the options box is getting the full width, but then the responsive is not working well (see picture 2). I think I missed something, any Ideas?  .hikashop&#95;product&#95;characteristics, .hikashop&#95;product&#95;options{ width: auto !important; }  .hikashop&#95;product&#95;characteristics&#95;table select, .hikashop&#95;product&#95;options&#95;table select { width: auto !important; }")*

Thanks Nicolas,

I implement the following line in the front css.

@media only screen and (max-width:350px) {
.hikashop_product_characteristics, .hikashop_product_options, .hikashop_product_characteristics_table select, .hikashop_product_options_table select {
width: auto !important;
}

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

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