Skip Navigation

[Résolu] mobile checkbox css and gap

This support ticket is created Il y a 7 années et 3 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Ce sujet contient 16 réponses, a 2 voix.

Dernière mise à jour par Akhil Il y a 7 années et 3 mois.

Assisté par: Luo Yang.

Auteur
Publications
#565008

Hi, Luo, could you check my site front end pls.

i need help with some minor CSS

1. the check box the gap is very big, I'm trying to get it narrower. it's at tab " District Filter" .
I've try line-height, height etc, I think maybe GP theme is crossing the style.

thanks.

#565009

Pls test is in mobile view 320px / 480px wide at lease.

#565016

Dear C6410,

It is a custom CSS problem, I assume we are talking about your website:
lien caché
please point out the problem page URL, how and where I can see the problem:
the check box the gap is very big, I'm trying to get it narrower. it's at tab " District Filter" .
I've try line-height, height etc, I think maybe GP theme is crossing the style.

I need to test and debug it in my browser. thanks

#565021

HI Luo.

its at the same like as before

lien caché

click the accordion "Landed House Search" its in the last accordion.
I think you can use the firebug/web dev tools for this .

Again pls view in responsive mobile 320/480px wide for testing as the code/adjustment is for this mobile view.

thanks.

#565039

I assume we are talking about the vertical gap between each checkbox, I tested it in my Chrome browser, you can try to modify the CSS file:
lien caché
line 872, from:

.sg-dist-divv .children li {
    display: inline-block;
    margin-left: 0px;
    width: 99%;
    font-size: 10px;
}

To:

.sg-dist-divv .children li {
    display: inline-block;
    margin-left: 0px;
    width: 99%;
    font-size: 10px;
    margin-top: -5px; /* add this line*/
}

And test again, see screenshot mobile-checkbox.JPG

#565044

Hi, thanks. i wil check this. i dont think its that straightforward though. anyway

Pls be cautious with my url , google is picking it up , and pls remove the images as well. many thanks.

#565049

Hi Luo , i checked again the max value for margin-top is -2px, after that -3px...-5px no responce. there is some other classes that limiting this bootstrap checkboxes.

i need the checkboxes to be closer possible with a small horizontal gap.

thanks

#565057

Hi Luo. the difference is this particular area is a taxonomy.
the rest of the custom fields check box i could style it easily.

#565104

Thanks for the details, the URL has been replaced. I am checking it in your website, will feedback if there is anything found

#565106

Thanks , Kindly remove the images too 🙂

#565112

You need to apply CSS codes to the checkbox field, for example:

.filter-list input[type="checkbox"] {
    margin: 0px;
    padding: 0px;
}

see screenshot mobile-checkbox2.JPG

#565119

hi. Luo. thanks for looooking into this. Unfortunately the result it still the same. thanks

#565127

HI, my big guess that this css code need to go into a loop rather then direct styling.
Do we have any designer for toolset can look into this please ?
thanks.

#565414

OK, as your request, I will check it with our designer, and will update this thread if there is anything news.

#565422

Hi. Luo. ive manage to get the problem solved. kindly please remove all images. thank you. i will close this topic soon. thanks