Get 2024 Templates Mega Bundle!19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets
Get for 99$

form-check-inline crashes with form-check-custom


Hi,

If I used form-check-inline with form-check-custom together, the inline effect disappeared, please help check, thanks.

e.g.


<div class="form-group form-check form-check-custom form-check-solid form-check-inline mb-3">
<input type="checkbox" name="strategy[source][social_media][]" value="facebook" id="strategy-source-social-media-facebook" class="form-check-input"><label class="form-check-label" for="strategy-source-social-media-facebook">Facebook</label>
</div>


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi,

I come up a solution which no need alter html structure:


.form-check-custom.form-check-inline {
display: inline-block;
margin-right: 1rem;
}


Maybe take this reference for future development.

Thanks.



Hi happy,

Great workaround. We will add it in the next update as:


// Inline
.form-check-custom {
&.form-check-inline {
display: inline-block;
margin-right: $form-check-inline-margin-end;
}
}


Regards.


Your Support Matters!

We will highly appreciate your Metronic Review on Themeforest.
Please go to Themeforest Downloads page, select Metronic & leave your feedback.

Hi,

Please try to use below markup to have inline checkboxes:


<div class="d-flex align-items-center gap-5">
<div class="form-group form-check form-check-custom form-check-solid">
<input type="checkbox" name="strategy[source][social_media][]" value="facebook" class="form-check-input"/>
<label class="form-check-label" for="option-1">Option 1</label>
</div>

<div class="form-group form-check form-check-custom form-check-solid">
<input type="checkbox" name="strategy[source][social_media][]" value="facebook" class="form-check-input"/>
<label class="form-check-label" for="option-2">Option 2</label>
</div>
</div>


If you need any further clarifications please let us know.

Regards.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(