Select box sizes

  • Posts: 39
  • Thank you received: 4
2 years 3 months ago #347440

-- url of the page with the problem -- : bikergearsuperstore.co.uk/helmets/browse...1-venom-2-red-helmet
-- HikaShop version -- : 4.7.0
-- Joomla version -- : 425
-- PHP version -- : 8.0.26
-- Browser(s) name and version -- : All

Hi,

I've just updated to Hikashop 4.7.0 and the drop boxes (Colour and Size for example) appear to be 100% wide.

They were narrower before. Hope you can help.

Regards,
Colin.

Please Log in or Create an account to join the conversation.

  • Posts: 83398
  • Thank you received: 13491
  • MODERATOR
2 years 2 months ago #347445

Hi,

Indeed. With HikaShop 4.7.0, we now use the class of Joomla for dropdowns so that they take on the style of the template, for better looking forms.
So the change you see comes from your template CSS.
If you don't want that for the characteristic dropdowns, you can add such CSS:

#hikashop_product_characteristics select{ width: unset !important; }
www.hikashop.com/support/documentation/1...ize-the-display.html

The following user(s) said Thank You: HikkaCol

Please Log in or Create an account to join the conversation.

  • Posts: 39
  • Thank you received: 4
2 years 2 months ago #347557

Thanks, that's great.

Just one small issue. The width appears to default to the default displayed selection. It doesn't render correctly if a lower option is selected that is wider than the default option.

Hope this makes sense. I have attached a couple of screenshots.

Thanks.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83398
  • Thank you received: 13491
  • MODERATOR
2 years 2 months ago #347558

Hi,

Then, you could change that CSS code and instead of "unset", you could for example write "250px" or another value which better fit with what you want.

The following user(s) said Thank You: HikkaCol

Please Log in or Create an account to join the conversation.

  • Posts: 39
  • Thank you received: 4
2 years 2 months ago #347648

That's brilliant. Thank you.

I have set it to 50% and 80% for the options field.

Regards,
Colin.

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum
loading