pretty-checkbox icon indicating copy to clipboard operation
pretty-checkbox copied to clipboard

By Default inline-block?

Open CodeCurosity opened this issue 6 years ago • 4 comments

why pretty is by default inline-block?

CodeCurosity avatar Dec 11 '18 15:12 CodeCurosity

Hi @UsmanShahzad ,

  1. To place multiple checkbox/radio buttons in a row
  2. Most of <input/> will be inline
  3. As pretty supports placing block elements inside, there should be a balance between block and inline
  4. It is easy to wrap with a <div> to make it in a row, but not the other way.

lokesh-coder avatar Dec 11 '18 17:12 lokesh-coder

So what do we do to make it not in-line like https://getbootstrap.com/docs/4.0/components/forms/

CodeCurosity avatar Dec 11 '18 18:12 CodeCurosity

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>

lokesh-coder avatar Dec 11 '18 20:12 lokesh-coder

Thanks i will give it a try.

CodeCurosity avatar Dec 11 '18 21:12 CodeCurosity