Post by alarsdes » 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

Attachments

dropdown.jpg

dropdown.jpg (109.8 KiB) Viewed 1305 times


Active Member

Posts

Joined
Thu Aug 25, 2011 3:36 pm

Post by cmsroom » Sat Nov 06, 2021 4:11 am

you want more space in between option of select drop down, we hope you want vertical space?

You may like these extension : - https://www.opencart.com/index.php?rout ... r=cmsrooms


New member

Posts

Joined
Fri Sep 28, 2018 1:37 am

Post by alarsdes » Sat Nov 06, 2021 5:11 pm

yes that is what i want.

Active Member

Posts

Joined
Thu Aug 25, 2011 3:36 pm

Post by straightlight » Sat Nov 06, 2021 8:19 pm

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by paulfeakins » Mon Nov 08, 2021 7:00 pm

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.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by paulfeakins » Mon Nov 08, 2021 7:00 pm

straightlight wrote:
Sat Nov 06, 2021 8:19 pm
OC version.
Utterly irrelevant in this case.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by straightlight » Mon Nov 08, 2021 7:03 pm

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by paulfeakins » Mon Nov 08, 2021 7:24 pm

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.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by alarsdes » Mon Nov 08, 2021 7:28 pm

oc version 2031

Active Member

Posts

Joined
Thu Aug 25, 2011 3:36 pm

Post by Gergely » Tue Nov 09, 2021 6:49 pm

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

Active Member

Posts

Joined
Wed Sep 30, 2020 7:58 pm

Post by alarsdes » Wed Nov 10, 2021 8:39 pm

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

Attachments

dropdown-space.jpeg

dropdown-space.jpeg (186.93 KiB) Viewed 1000 times


Active Member

Posts

Joined
Thu Aug 25, 2011 3:36 pm

Post by Gergely » Wed Nov 10, 2021 9:57 pm

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

Attachments

lighthouse.png

lighthouse.png (1.19 MiB) Viewed 976 times


Active Member

Posts

Joined
Wed Sep 30, 2020 7:58 pm

Post by alarsdes » Thu Nov 11, 2021 5:23 pm

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

Active Member

Posts

Joined
Thu Aug 25, 2011 3:36 pm
Who is online

Users browsing this forum: No registered users and 59 guests