CSS Styling not working

  • Posts: 38
  • Thank you received: 0
6 years 7 months ago #297330

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.12
-- PHP version -- : 7.2.8
-- Browser(s) name and version -- : All

So I'm in the right spot to change the styling because I've already change the size of the child images but I can not change the color of this class

hikashop_product_stock_count hikashop_product_no_stock

I've tried
span.hikashop_product_stock_count hikashop_product_no_stock{color: #f00 !important;}
And:
#hikashop_product_quantity_main span.hikashop_product_stock_count hikashop_product_no_stock{color: #f00 !important;}

But it doesn't change and does even show up in the styles when I inspect it in Chrome. In fact, this style doesn't appear in the css file and I had to add it.

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

  • Posts: 83589
  • Thank you received: 13528
  • MODERATOR
6 years 7 months ago #297343

Hi,

Your CSS is not correct. You're missing a dot before the class name hikashop_product_no_stock
So it should be:

span.hikashop_product_stock_count .hikashop_product_no_stock{color: #f00 !important;}

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

Time to create page: 0.052 seconds
Powered by Kunena Forum