height of sort dropdown

  • Posts: 15
  • Thank you received: 0
4 years 1 week ago #330274

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.23
-- PHP version -- : 7.4.14
-- Browser(s) name and version -- : Chrome

Hi.
I need to make the height of the "sort by" drop down the same as the height of the search. I also want to make the font the same and the border the same color. I cannot find where the css for this is. I have tried to inspect it, and change what the inspector shows, but nothing seems to change it.

thanks

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

  • Posts: 4816
  • Thank you received: 654
  • MODERATOR
4 years 1 week ago #330293

Hello,

There are no need to find the relative command Css, you can just add your own Css command.
The point is just to create a css command with sufficient priority so that they override the default (and unwanted) commands.

First, have a look on this documentation to see how to proceed to add your own custom Css.

And here some explanations to understand how to build high priority css command :
1. First the minimum necessary to function properly :
Check that your selector is well written, good class (or Id) html and no mistake or typo
If your command is visible in your browser inspector tool, but is overridden (css command crossed out), then his priority isn't strong enough.



2. Now, some css priority system explanation :
From less to the highest priority :
.html_class_element {command: value}
.html_class_module .html_class_element {command: value}
.html_class_page .html_class_module .html_class_element {command: value}
.html_class_page .html_class_module .html_class_element {command: value !important;}


Note, that if 2 css commands have strictly the same selector, then the last written in the css file will be the one used.
Hope this will help you to achieve what you need.

regards

Last edit: 4 years 1 week ago by Philip.

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

Time to create page: 0.047 seconds
Powered by Kunena Forum