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

#   How to reduce with length of Quantity number field

##

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

Less More

- Posts: 190
- Thank you received: 2
-
-

11 years 9 months ago [\#190964](#190964) by [scarney](/forum/user/31381-scarney "View scarney's Profile")  *[How to reduce with length of Quantity number field](/forum/26-product-category-display/875035-how-to-reduce-with-length-of-quantity-number-field#190964 "-- HikaShop version -- : 2.3.5 Essential -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Error-message(debug-mod must be tuned on) -- : no error message  I want to reduce the width of the Quantity number field in all my two column layouts since it is making the plus and minus symbols very crowded and tight between the data field and the Add to cart button.  Here is a page where I do not like the spacing:   apf.cloudaccess.net/dvd  On the actual product pages I am happy with the spacing. Here is one of them:   apf.cloudaccess.net/dvd/scripture/produc...-the-forgotten-dream  If you could give me a little override to put into my custom.css file I would be grateful! :-)  Thanks, Sean Carney")* was created by *[scarney](/forum/user/31381-scarney "View scarney's Profile")*

-- HikaShop version -- : 2.3.5 Essential
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.29
-- Error-message(debug-mod must be tuned on) -- : no error message

I want to reduce the width of the Quantity number field in all my two column layouts since it is making the plus and minus symbols very crowded and tight between the data field and the Add to cart button.

Here is a page where I do not like the spacing:
[ apf.cloudaccess.net/dvd](http://apf.cloudaccess.net/dvd)

On the actual product pages I am happy with the spacing. Here is one of them:
[ apf.cloudaccess.net/dvd/scripture/produc...-the-forgotten-dream](http://apf.cloudaccess.net/dvd/scripture/product/140-the-forgotten-dream)

If you could give me a little override to put into my custom.css file I would be grateful! ![:-)](/media/kunena/emoticons/3.png ":-)")

Thanks, Sean Carney

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

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile")
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

11 years 9 months ago [\#190994](#190994) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[How to reduce with length of Quantity number field](/forum/26-product-category-display/875035-how-to-reduce-with-length-of-quantity-number-field#190994 "-- HikaShop version -- : 2.3.5 Essential -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Error-message(debug-mod must be tuned on) -- : no error message  I want to reduce the width of the Quantity number field in all my two column layouts since it is making the plus and minus symbols very crowded and tight between the data field and the Add to cart button.  Here is a page where I do not like the spacing:   apf.cloudaccess.net/dvd  On the actual product pages I am happy with the spacing. Here is one of them:   apf.cloudaccess.net/dvd/scripture/produc...-the-forgotten-dream  If you could give me a little override to put into my custom.css file I would be grateful! :-)  Thanks, Sean Carney")*

Try this: Code:

.hikashop_products_listing input.hikashop_product_quantity_field { width: 50px; text-align: center; }

Note that I added the center alignment... keep it or leave it... ![;)](/media/kunena/emoticons/24.png ";)")

To eventually make the +/- better accessible, use this: Code:

.hikashop_products_listing a.hikashop_product_quantity_field_change { font-size: 24px; padding: 0 10px; }

Thanks to the class "hikashop_products_listing", all of this applies to product listings only, not to the product pages. If you want it there, too, just leave that class away.

As far as I can tell, you're not using any HikaShop CSS file, so add it to your template's custom.css file.

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

The following user(s) said Thank You: [scarney](/forum/user/31381-scarney "View scarney's Profile"), [d1bro](/forum/user/35876-d1bro "View d1bro's Profile")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 9 months ago [\#190979](#190979) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How to reduce with length of Quantity number field](/forum/26-product-category-display/875035-how-to-reduce-with-length-of-quantity-number-field#190979 "-- HikaShop version -- : 2.3.5 Essential -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Error-message(debug-mod must be tuned on) -- : no error message  I want to reduce the width of the Quantity number field in all my two column layouts since it is making the plus and minus symbols very crowded and tight between the data field and the Add to cart button.  Here is a page where I do not like the spacing:   apf.cloudaccess.net/dvd  On the actual product pages I am happy with the spacing. Here is one of them:   apf.cloudaccess.net/dvd/scripture/produc...-the-forgotten-dream  If you could give me a little override to put into my custom.css file I would be grateful! :-)  Thanks, Sean Carney")*

Hi,

Here are the properties: Code:

.hikashop_product_quantity_field_change{ font-size: 22px !important; } .hikashop_products_listing .hikashop_product_quantity_field{ width: 95% !important; }

But I really think that the best way to help you, is to give you that link:
[ www.hikashop.com/support/support/documen...ize-the-display.html](http://www.hikashop.com/support/support/documentation/153-customize-the-display.html)

It explain how to customize the display ![;)](/media/kunena/emoticons/24.png ";)")

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

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

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

Less More

- Posts: 190
- Thank you received: 2
-
-

11 years 9 months ago [\#191082](#191082) by [scarney](/forum/user/31381-scarney "View scarney's Profile")  Replied by *[scarney](/forum/user/31381-scarney "View scarney's Profile")* on topic *[How to reduce with length of Quantity number field](/forum/26-product-category-display/875035-how-to-reduce-with-length-of-quantity-number-field#191082 "-- HikaShop version -- : 2.3.5 Essential -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Error-message(debug-mod must be tuned on) -- : no error message  I want to reduce the width of the Quantity number field in all my two column layouts since it is making the plus and minus symbols very crowded and tight between the data field and the Add to cart button.  Here is a page where I do not like the spacing:   apf.cloudaccess.net/dvd  On the actual product pages I am happy with the spacing. Here is one of them:   apf.cloudaccess.net/dvd/scripture/produc...-the-forgotten-dream  If you could give me a little override to put into my custom.css file I would be grateful! :-)  Thanks, Sean Carney")*

would you also have a little magic to also make the + and - symbol fit within the height of the text field box. I see there appear to be a couple classes for the lining of of those symbols.

An example is at [ apf.cloudaccess.net/dvd/product/the-forgotten-dream](http://apf.cloudaccess.net/dvd/product/the-forgotten-dream)

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 9 months ago [\#191111](#191111) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How to reduce with length of Quantity number field](/forum/26-product-category-display/875035-how-to-reduce-with-length-of-quantity-number-field#191111 "-- HikaShop version -- : 2.3.5 Essential -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Error-message(debug-mod must be tuned on) -- : no error message  I want to reduce the width of the Quantity number field in all my two column layouts since it is making the plus and minus symbols very crowded and tight between the data field and the Add to cart button.  Here is a page where I do not like the spacing:   apf.cloudaccess.net/dvd  On the actual product pages I am happy with the spacing. Here is one of them:   apf.cloudaccess.net/dvd/scripture/produc...-the-forgotten-dream  If you could give me a little override to put into my custom.css file I would be grateful! :-)  Thanks, Sean Carney")*

Hi,

Please read our doc about layout customization, you can too find many sources to learn some css on the web ![;)](/media/kunena/emoticons/24.png ";)")
You can too try to use another layout for the input quantity field thanks to the option "Quantity layout on product page" in Configuration &gt; Display &gt; Products or in the settings of your menu/modules directly.

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

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

Less More

- Posts: 190
- Thank you received: 2
-
-

11 years 9 months ago [\#191197](#191197) by [scarney](/forum/user/31381-scarney "View scarney's Profile")  Replied by *[scarney](/forum/user/31381-scarney "View scarney's Profile")* on topic *[How to reduce with length of Quantity number field](/forum/26-product-category-display/875035-how-to-reduce-with-length-of-quantity-number-field#191197 "-- HikaShop version -- : 2.3.5 Essential -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Error-message(debug-mod must be tuned on) -- : no error message  I want to reduce the width of the Quantity number field in all my two column layouts since it is making the plus and minus symbols very crowded and tight between the data field and the Add to cart button.  Here is a page where I do not like the spacing:   apf.cloudaccess.net/dvd  On the actual product pages I am happy with the spacing. Here is one of them:   apf.cloudaccess.net/dvd/scripture/produc...-the-forgotten-dream  If you could give me a little override to put into my custom.css file I would be grateful! :-)  Thanks, Sean Carney")*

Thank you for showing me that setting. I prefer your default setting. Wish I had more time to learn CSS. ![:-)](/media/kunena/emoticons/3.png ":-)")

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

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