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

#   Quantity Field Minimal width on mobile

##

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

Less More

- Posts: 26
- Thank you received: 1
-
-

5 years 1 month ago [\#336043](#336043) by [szwart](/forum/user/51634-szwart "View szwart's Profile")  *[Quantity Field Minimal width on mobile](/forum/26-product-category-display/903261-quantity-field-minimal-width-on-mobile#336043 "-- url of the page with the problem -- :   houtvanappel.nl/index.php/hikashop-categ...aarpot-vrachtwagen-a  -- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.3.18 -- Browser(s) name and version -- : Chrome  Hi,  On mobile view my quantity field is to small. how can i set a minimal width or a fixed with in the frontend css? been searching long but cannot find the solution.  this occurs on the cart and product view.  Chart pc view  Chart mobile view  Product pc view  Product mobile view")* was created by *[szwart](/forum/user/51634-szwart "View szwart's Profile")*

-- url of the page with the problem -- : [ houtvanappel.nl/index.php/hikashop-categ...aarpot-vrachtwagen-a](https://houtvanappel.nl/index.php/hikashop-category/product/95398-spaarpot-vrachtwagen-a)
-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.10.2
-- PHP version -- : 7.3.18
-- Browser(s) name and version -- : Chrome

Hi,

On mobile view my quantity field is to small.
how can i set a minimal width or a fixed with in the frontend css?
been searching long but cannot find the solution.

this occurs on the cart and product view.

Chart pc view
[ ![hikachart&#95;large.PNG](/forum/attachment/53622) ](/forum/attachment/53622 "...hart&#95;large.PNG")

Chart mobile view
[ ![hikachart&#95;small.PNG](/forum/attachment/53623) ](/forum/attachment/53623 "...hart&#95;small.PNG")

Product pc view
[ ![hikalarge.PNG](/forum/attachment/53624) ](/forum/attachment/53624 "hikalarge.PNG")

Product mobile view
[ ![hikasmall.PNG](/forum/attachment/53625) ](/forum/attachment/53625 "hikasmall.PNG")

- [ ![hikachart&#95;large.PNG](/forum/attachment/53622) ](/forum/attachment/53622 "...hart&#95;large.PNG") [ ](/forum/attachment/53622?download=1 "...hart&#95;large.PNG")
- [ ![hikachart&#95;small.PNG](/forum/attachment/53623) ](/forum/attachment/53623 "...hart&#95;small.PNG") [ ](/forum/attachment/53623?download=1 "...hart&#95;small.PNG")
- [ ![hikalarge.PNG](/forum/attachment/53624) ](/forum/attachment/53624 "hikalarge.PNG") [ ](/forum/attachment/53624?download=1 "hikalarge.PNG")
- [ ![hikasmall.PNG](/forum/attachment/53625) ](/forum/attachment/53625 "hikasmall.PNG") [ ](/forum/attachment/53625?download=1 "hikasmall.PNG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDMyNjEtcXVhbnRpdHktZmllbGQtbWluaW1hbC13aWR0aC1vbi1tb2JpbGU/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 1 month ago -  5 years 1 month ago [\#336048](#336048) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Quantity Field Minimal width on mobile](/forum/26-product-category-display/903261-quantity-field-minimal-width-on-mobile#336048 "-- url of the page with the problem -- :   houtvanappel.nl/index.php/hikashop-categ...aarpot-vrachtwagen-a  -- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.3.18 -- Browser(s) name and version -- : Chrome  Hi,  On mobile view my quantity field is to small. how can i set a minimal width or a fixed with in the frontend css? been searching long but cannot find the solution.  this occurs on the cart and product view.  Chart pc view  Chart mobile view  Product pc view  Product mobile view")*

Hello,

First of all, have a look on this [ **tutorial**](https://www.hikashop.com/support/documentation/272-hikashop-display-by-color.html#custom) to learn how to add custom css.

And second, your issue come from these **css commands**, have a look on my screenshot :
[ ![alt](https://i.ibb.co/KDkpktD/css-custom.png) ](https://i.ibb.co/KDkpktD/css-custom.png "alt")

Now in order to answer your question, you can add this kind of commands : Code:

// For ALL screen size .YOUR_REQUIRED_CONTEXT_HTML input[type="number"] { min-width: XXpx !important; } // For SMALL screen size (here: 600 px width) @media only screen and (max-width: 600px) { .YOUR_REQUIRED_CONTEXT_HTML input[type="number"] { min-width: YYpx !important; } }

**OR**Code:

.YOUR_REQUIRED_CONTEXT_HTML input[type="number"] { padding: 2px 5px !important; }

The "***.YOUR\_REQUIRED\_CONTEXT\_HTML***" is your context in order to apply your new command when required.

**Note :** the "***!important***" is to be sure to prioritize your custom commands over the unwanted command.
Hope this will help you to achieved your needs.

Regards

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

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

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

Less More

- Posts: 26
- Thank you received: 1
-
-

5 years 1 month ago [\#336060](#336060) by [szwart](/forum/user/51634-szwart "View szwart's Profile")  Replied by *[szwart](/forum/user/51634-szwart "View szwart's Profile")* on topic *[Quantity Field Minimal width on mobile](/forum/26-product-category-display/903261-quantity-field-minimal-width-on-mobile#336060 "-- url of the page with the problem -- :   houtvanappel.nl/index.php/hikashop-categ...aarpot-vrachtwagen-a  -- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.3.18 -- Browser(s) name and version -- : Chrome  Hi,  On mobile view my quantity field is to small. how can i set a minimal width or a fixed with in the frontend css? been searching long but cannot find the solution.  this occurs on the cart and product view.  Chart pc view  Chart mobile view  Product pc view  Product mobile view")*

Hi Philip,

Thank you for your comment.
i tried following code, but unsuccesfull.

edited this in the frontend.css

// For SMALL screen size (here: 600 px width)
@media only screen and (max-width: 600px) {
.hikashop_product_quantity_field input[type="number"] {
min-width: 15px !important;
}

what am i doing wrong...

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

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

Less More

- Posts: 26
- Thank you received: 1
-
-

5 years 1 month ago [\#336061](#336061) by [szwart](/forum/user/51634-szwart "View szwart's Profile")  Replied by *[szwart](/forum/user/51634-szwart "View szwart's Profile")* on topic *[Quantity Field Minimal width on mobile](/forum/26-product-category-display/903261-quantity-field-minimal-width-on-mobile#336061 "-- url of the page with the problem -- :   houtvanappel.nl/index.php/hikashop-categ...aarpot-vrachtwagen-a  -- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.3.18 -- Browser(s) name and version -- : Chrome  Hi,  On mobile view my quantity field is to small. how can i set a minimal width or a fixed with in the frontend css? been searching long but cannot find the solution.  this occurs on the cart and product view.  Chart pc view  Chart mobile view  Product pc view  Product mobile view")*

removed the padding out of the bootstrap.css that seems to solve the issue

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

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

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