Jump to content

How Do I Add A Space Between The Box And Caption Of The TUniCheckBox?


Frederick

Recommended Posts

I am using the theme "uni_win11_polar_light". 

The space between the box and the caption in the TUniCheckBox is too small. How do I add a space between the box and the caption?

I tried "&nbspChange" for the caption but it showed "nbspChange". For some reason, this same method works for a TUniRadioButton.

--
Frederick
(UniGUI Complete - Professional Edition 1.95.0.1576)
 

checkboxspace.png

Link to comment
Share on other sites

6 hours ago, Frederick said:

Thanks. May I have the code to put in CustomCSS?

Well,

1-Possible solution: Using the !important rule in CSS (but) is generally considered to be bad practice because it overrides all other styles, regardless of their specificity. 

.x-form-cb-label {
    padding-left: 22px !important;
}

2-Possible solution: Using extra class.

  2.1. LayoutConfig.Cls = customCB

  2.2. 

.customCB .x-form-cb-label {
    padding-left: 22px;
}

...

Link to comment
Share on other sites

9 hours ago, Sherzod said:

Well,

1-Possible solution: Using the !important rule in CSS (but) is generally considered to be bad practice because it overrides all other styles, regardless of their specificity. 

.x-form-cb-label {
    padding-left: 22px !important;
}

2-Possible solution: Using extra class.

  2.1. LayoutConfig.Cls = customCB

  2.2. 

.customCB .x-form-cb-label {
    padding-left: 22px;
}

...

Thanks. This is a better solution.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...