Page 1 of 1

More space between links dropdown menu

Posted: Fri Nov 05, 2021 9:49 pm
by alarsdes
Hello,

Can someone tel me how i can get more space between the links in the dropdown menu (see Image)
If I change padding in the stylesheet nav>li then it also affects the navbar. And that is not what i want.
The dropdown is custom made. But I can not reach the developer anymore.
https://www.112ink.nl

Please inform me. Thank you

Re: More space between links dropdown menu

Posted: Sat Nov 06, 2021 4:11 am
by cmsroom
you want more space in between option of select drop down, we hope you want vertical space?

Re: More space between links dropdown menu

Posted: Sat Nov 06, 2021 5:11 pm
by alarsdes
yes that is what i want.

Re: More space between links dropdown menu

Posted: Sat Nov 06, 2021 8:19 pm
by straightlight
alarsdes wrote:
Fri Nov 05, 2021 9:49 pm
Hello,

Can someone tel me how i can get more space between the links in the dropdown menu (see Image)
If I change padding in the stylesheet nav>li then it also affects the navbar. And that is not what i want.
The dropdown is custom made. But I can not reach the developer anymore.
https://www.112ink.nl

Please inform me. Thank you
OC version.

Re: More space between links dropdown menu

Posted: Mon Nov 08, 2021 7:00 pm
by paulfeakins
alarsdes wrote:
Fri Nov 05, 2021 9:49 pm
Can someone tel me how i can get more space between the links in the dropdown menu (see Image)
If I change padding in the stylesheet nav>li then it also affects the navbar. And that is not what i want.
The dropdown is custom made. But I can not reach the developer anymore.
https://www.112ink.nl
I don't think it can be done in Google Chrome (as described here https://stackoverflow.com/questions/226 ... -in-chrome) but in Firefox the spacing looks good to me.

Re: More space between links dropdown menu

Posted: Mon Nov 08, 2021 7:00 pm
by paulfeakins
straightlight wrote:
Sat Nov 06, 2021 8:19 pm
OC version.
Utterly irrelevant in this case.

Re: More space between links dropdown menu

Posted: Mon Nov 08, 2021 7:03 pm
by straightlight
paulfeakins wrote:
Mon Nov 08, 2021 7:00 pm
straightlight wrote:
Sat Nov 06, 2021 8:19 pm
OC version.
Utterly irrelevant in this case.
Up to your share of views of course but be reminded that older OC versions do use older jQuery libraries as well. If that is irrelevant according to you, then something here on the topic is missing definitely based on the information that is provided.

Re: More space between links dropdown menu

Posted: Mon Nov 08, 2021 7:24 pm
by paulfeakins
straightlight wrote:
Mon Nov 08, 2021 7:03 pm
be reminded that older OC versions do use older jQuery libraries as well.
It seems to me in this case that it's just the HTML <select> element that can't be styled here.

Re: More space between links dropdown menu

Posted: Mon Nov 08, 2021 7:28 pm
by alarsdes
oc version 2031

Re: More space between links dropdown menu

Posted: Tue Nov 09, 2021 6:49 pm
by Gergely
Hi alarsdes,

Unfortunately, as @paulfeakins has alluded to it before, styling HTML form elements is tricky business, and usually has to be done differently for different browsers. In the case of some elements (<select> is one of these) it's practically impossible to execute reliably and consistently across browsers. For more on the reasons and what you can try please refer to this MDN article on styling web forms.

Instead, you could replace the HTML control with a framework-driven solution. As opencart already uses Bootstrap, Bootstrap Dropdowns could be the way to go here, but there are other open source solutions as well. Implementing these would require refactoring the JS too, but in return you would get complete control over the styling. Depending on how comfortable you are with front-end development, this might require you to involve professional help.

I hope this has been a meaningful contribution!
Gergely

Re: More space between links dropdown menu

Posted: Wed Nov 10, 2021 8:39 pm
by alarsdes
Thank you all.
BTW. I do not understand why , Google finds this a problem.
When I open my webshop https://www.112ink.nl with Android 11 phone.
And looking at the dropdown I really do not want anymore space between the items. See image

Re: More space between links dropdown menu

Posted: Wed Nov 10, 2021 9:57 pm
by Gergely
Oh, so this is about Google complaining about tap targets!

I don't think it's an issue with the <select> then, but the Top Menu and Footer Links (at least Lighthouse says so...)
To resolve the issue read through this thread and follow the suggestions there.

I hope this helps,
Gergely

Re: More space between links dropdown menu

Posted: Thu Nov 11, 2021 5:23 pm
by alarsdes
It looks perfect. I am not so in writing in the stylesheet.
Could you change that code for me?
I could send you the sheet

Thank you