Skip Navigation

[Resolved] Spacing and alignment

This support ticket is created 3 years, 3 months ago. 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.

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/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by rajivG 3 years, 3 months ago.

Assisted by: Waqar.

Author
Posts
#2148875
1.png

Hi,

I have a query, please.

In the attachment, a screenshot from View Search, how do I -

1) Increase the space in 1 & 2, i.e. the checkbox is too close to the words, and I need spacing
2) The texts need to move upwards, or the checkboxes need to move downward, for alignment purposes

Thank you.

Rajiv

#2149273

Hi Rajiv,

Thank you for contacting us and I'd be happy to assist.

To suggest the best way to achieve this, I'll need to see exactly how this view is set up.

Can you please share temporary admin login details, along with the link to the page with this view?

Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.

regards,
Waqar

#2149393

Thank you for sharing the admin access.

To control the vertical and horizontal alignment of text labels with respect to the checkboxes, you can include the following CSS code in your view's "Custom CSS":


.wpv-filter-form .form-group .checkbox label input[type="checkbox"] {
    margin-right: 6px;
    vertical-align: middle;
    margin-top: -2px;
}

Note: Feel free to adjust the margin-right value to control the horizontal spacing and the margin-top value to control the vertical alignment.

Tip: To check the CSS code styles applying to different page elements, you can use Google Chrome's inspect element tool, as explained in this guide:
hidden link

#2149647

Waqar, it worked. Thank you for helping out.