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

Reverse input and label positioning?

Open jbdivups opened this issue 6 years ago • 6 comments

Trying to have label on left and radio input on right. Any help is much appreciated. Thanks for the great library.

jbdivups avatar Jan 26 '18 02:01 jbdivups

Hi @jbdivups ,

Plesae try this CSS,

.pretty .state label{
  padding-right: 1.5rem;
  text-indent: inherit;
}

.pretty .state label:after,
.pretty .state label:before{
  left: auto;
  right: 0;
}

Also, here's the jsbin, https://jsbin.com/mikuqil/edit?html,css,output

lokesh-coder avatar Jan 26 '18 03:01 lokesh-coder

@lokesh-coder thanks for your component ! I tried the code above without luck. Any idea ? An option to reverse the label could be an awesome additionnal feature

yann-yinn avatar Jan 29 '18 12:01 yann-yinn

Hi @nyl-auster, im working on a new update. I will add this feature very sooner. And regarding this issue, i will post a quick fix shortly.

lokesh-coder avatar Jan 30 '18 14:01 lokesh-coder

This seems to work for icons.

.pretty.right .state > i
    {
        right: 0;
        left: auto !important;
    }

TimNZ avatar Jul 05 '18 20:07 TimNZ

Any official update here? Or is this library abandoned?

skillmatic-co avatar Dec 11 '20 20:12 skillmatic-co

Hi, thanks for the library!

I would like to do the exact same thing : move the label to the left of the checkbox. Right now, if I put the label before the input html element, they overlap.

johhnry avatar Mar 29 '21 09:03 johhnry