Skip Navigation

[Resuelto] mobile checkbox gap

This support ticket is created hace 7 años, 2 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Este tema contiene 5 respuestas, tiene 2 mensajes.

Última actualización por Christian Cox hace 7 años, 2 meses.

Asistido por: Christian Cox.

Autor
Mensajes
#565271

Hi. do we have any css expert /designer here ? need some help with some css.

the related thread is here:
https://toolset.com/forums/topic/mobile-checkbox-css-and-gap/#post-565127

Pls let me know if we have a solution or workaround on this please. thanks in advance .

#565340

Ultimately, writing the CSS to support your custom site design is up to you. It's going to be tricky because the checkboxes are different sizes depending on the browser / device, and the margins and padding change depending on screen widths. I can offer this set of overrides as a starting point:

@media (max-width: 991px) and (min-width: 480px) {
  .js-wpv-filter-form-51 .checkbox input[type="checkbox"].lv_house_type_cbox {
    top: -4px;
    /* this is where you add or modify any overrides to checkboxes at 480 - 991 pixel widths */
  }
}

 @media (max-width: 479px) {
  .js-wpv-filter-form-51 .checkbox input[type="checkbox"].lv_house_type_cbox {
    top: -4px;
    / * this is where you add or modify any overrides to checkboxes at widths up to 479px */
  }
}

@media (min-width: 992px) {
  .js-wpv-filter-form-51 .checkbox input[type="checkbox"].lv_house_type_cbox {
    height: 22px;
    left: -5px;
    top: -4px;
    width: 22px;
    margin: 0;
    padding: 0;
    /* this is where you can add or modify any overrides to checkboxes at widths 992px and greater. */
  }
}

Try adding that to the Layouts CSS panel. I played around with it in Chrome and it seems to look okay at different resolutions, but I didn't do a thorough cross-browser test.

#565399

Hi Christian,thanks for looking into this.

but the troubled check box is not this, this perfectly able to style it . its the check boxes at the "District Filter" tab/accordion inside the main search accordion.

#565588

Okay take a look at the screenshot here. I am able to modify the styles for these checkboxes using this CSS:

.categorychecklist .lv_sf_dist_ele {
    top: 3px;
    position: relative;
}

If you want to apply this CSS at certain screen dimensions, you must use media queries. Please let me know if I have misunderstood what you're trying to accomplish, and provide screenshots showing what is wrong. Thanks!

#565590

Hi Chris , thanks , the problem i managed to solve it yesterday , basically by cleaning all the messy codes and start all over with simple styling.

Kindly remove the images attached above. have a great day mate.

#565593

Image removed.