Random Products Column Width

  • Posts: 966
  • Thank you received: 11
11 years 6 months ago #144672

-- HikaShop version -- :2.2.2
-- Joomla version -- : Joomla! 2.5.16

In the "Random Products" module, I am displaying 5 items and it's showing that each item is using 19% of the width, how can I change it to use 20% please?

Thank you!!

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

  • Posts: 12953
  • Thank you received: 1778
11 years 6 months ago #144765

Hi,
You'll be able to do that by using some CSS code :).

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

  • Posts: 966
  • Thank you received: 11
11 years 6 months ago #144817

Hi Mohamed,

I did try that but I thought inline code overrides CSS? The code is currently like this via firebug:

element.style {
        width:19%; }

I add the width as per below:
#hikashop_module_121 .hikashop_product {
	width:20%; }

But it does not change. Is there another way to do this using CSS?

Thank you!!

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

  • Posts: 84243
  • Thank you received: 13689
  • MODERATOR
11 years 6 months ago #144896

You need to use !important:
#hikashop_module_121 .hikashop_product {
width:20% !important; }

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

  • Posts: 966
  • Thank you received: 11
11 years 6 months ago #144904

Oh ok. I didn't know that was used to override element style.

Thank you very much!!

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

Time to create page: 0.071 seconds
Powered by Kunena Forum