Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can override the Bootstrap 2 class by adding a no_indent class (or whatever):</p> <pre><code>&lt;label class="checkbox inline no_indent"&gt; &lt;input type="checkbox" id="inlineCheckbox1" value="option1"&gt; Aaaaaaaaaa &lt;/label&gt; </code></pre> <p>and adding this to your CSS:</p> <pre><code>.checkbox.inline.no_indent, .checkbox.inline.no_indent+.checkbox.inline.no_indent { margin-left: 0; margin-right: 10px; } .checkbox.inline.no_indent:last-child { margin-right: 0; } </code></pre> <p><strong>Bootstrap 3:</strong> The <code>checkbox inline</code> classes have been reduced to a single <code>checkbox-inline</code> class. The HTML becomes:</p> <pre><code>&lt;label class="checkbox-inline no_indent"&gt; &lt;input type="checkbox" id="inlineCheckbox1" value="option1"&gt; Aaaaaaaaaa &lt;/label&gt; </code></pre> <p>CSS:</p> <pre><code>.checkbox-inline.no_indent, .checkbox-inline.no_indent+.checkbox-inline.no_indent { margin-left: 0; margin-right: 10px; } .checkbox-inline.no_indent:last-child { margin-right: 0; } </code></pre> <p><strong>Bootstrap 4:</strong> The <code>checkbox-inline</code> class is now <code>form-check-inline</code>:</p> <pre><code>&lt;label class="form-check-inline no_indent"&gt; &lt;input type="checkbox" id="inlineCheckbox1" value="option1"&gt; Aaaaaaaaaa &lt;/label&gt; </code></pre> <p>CSS:</p> <pre><code>.form-check-inline.no_indent, .form-check-inline.no_indent+.checkbox-inline.no_indent { margin-left: 0; margin-right: 10px; } .form-check-inline.no_indent:last-child { margin-right: 0; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload