pretty-checkbox
pretty-checkbox copied to clipboard
By Default inline-block?
why pretty is by default inline-block?
Hi @UsmanShahzad ,
- To place multiple checkbox/radio buttons in a row
- Most of
<input/>will beinline - As pretty supports placing block elements inside, there should be a balance between
blockandinline - It is easy to wrap with a
<div>to make it in a row, but not the other way.
So what do we do to make it not in-line like https://getbootstrap.com/docs/4.0/components/forms/
Just wrap it with div. something like this,
<div>
<div class="pretty p-default">
<input type="checkbox" />
<div class="state">
<label>Check</label>
</div>
</div>
</div>
Thanks i will give it a try.