Skip to main content

Random Products Column Width

More
12 years 7 months ago #144672 by MyWorld
-- 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.

More
12 years 7 months ago #144765 by Mohamed Thelji
Hi,
You'll be able to do that by using some CSS code :).

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

More
12 years 7 months ago #144817 by MyWorld
Hi Mohamed,

I did try that but I thought inline code overrides CSS? The code is currently like this via firebug:
Code:
element.style { width:19%; }

I add the width as per below:
Code:
#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.

More
12 years 7 months ago #144896 by nicolas
You need to use !important:
#hikashop_module_121 .hikashop_product {
width:20% !important; }

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

More
12 years 7 months ago #144904 by MyWorld
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.176 seconds
Powered by Kunena Forum