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

#   CSS qauntity field width

##

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

Less More

- Posts: 23
- Thank you received: 0
-
-

15 years 1 month ago [\#27328](#27328) by [benweb](/forum/user/3450-benweb "View benweb's Profile")  *[CSS qauntity field width](/forum/4-how-to/27328-css-qauntity-field-width#27328 "Hi:  The width of the product Quantity field in both the main column and the modules seems to come from the template css. Can individual field widths be changed with out changing all the fields in the template?  TEMPLATE CSS:  #colright input { width: 215px; margin: 0px 0px 0px 0px; }  If I change the width to 25px it changes widths in all my extensions in that colright.  Its the same with the colmain css  #colmain input, #colmain select { width: 215px; margin: 0px 0px 0px 0px; padding: 1px 3px 2px 3px; font-size: 12px; color: #272727; border: 1px; border-color: #DDDDDD; border-style: solid; vertical-align: bottom; background-image: url(../images/input&#95;bg.png); background-repeat: repeat-x; }  #colmain textarea { background-image: url(../images/input&#95;bg.png); background-repeat: repeat-x; }  #colmain select { width: 223px; }  Any changes affect all fields that are in this section.  Is there a way to override this and set individual fields (such as Quantity) with a different width?  Thanks Brad")* was created by *[benweb](/forum/user/3450-benweb "View benweb's Profile")*

Hi:

The width of the product Quantity field in both the main column and the modules seems to come from the template css. Can individual field widths be changed with out changing all the fields in the template?

TEMPLATE CSS:

\#colright input
{
width: 215px;
margin: 0px 0px 0px 0px;
}

If I change the width to 25px it changes widths in all my extensions in that colright.

Its the same with the colmain css

\#colmain input,
\#colmain select
{
width: 215px;
margin: 0px 0px 0px 0px;
padding: 1px 3px 2px 3px;
font-size: 12px;
color: #272727;
border: 1px;
border-color: #DDDDDD;
border-style: solid;
vertical-align: bottom;
background-image: url(../images/input_bg.png);
background-repeat: repeat-x;
}

\#colmain textarea
{
background-image: url(../images/input_bg.png);
background-repeat: repeat-x;
}

\#colmain select
{
width: 223px;
}

Any changes affect all fields that are in this section.

Is there a way to override this and set individual fields (such as Quantity) with a different width?

Thanks Brad

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

15 years 1 month ago [\#27330](#27330) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: CSS qauntity field width](/forum/4-how-to/27328-css-qauntity-field-width#27330 "Hi:  The width of the product Quantity field in both the main column and the modules seems to come from the template css. Can individual field widths be changed with out changing all the fields in the template?  TEMPLATE CSS:  #colright input { width: 215px; margin: 0px 0px 0px 0px; }  If I change the width to 25px it changes widths in all my extensions in that colright.  Its the same with the colmain css  #colmain input, #colmain select { width: 215px; margin: 0px 0px 0px 0px; padding: 1px 3px 2px 3px; font-size: 12px; color: #272727; border: 1px; border-color: #DDDDDD; border-style: solid; vertical-align: bottom; background-image: url(../images/input&#95;bg.png); background-repeat: repeat-x; }  #colmain textarea { background-image: url(../images/input&#95;bg.png); background-repeat: repeat-x; }  #colmain select { width: 223px; }  Any changes affect all fields that are in this section.  Is there a way to override this and set individual fields (such as Quantity) with a different width?  Thanks Brad")*

Hi,

Sure, you can do that with CSS:

.hikashop_product_quantity_field{
width: 40px !important;
}

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

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