title: CSS - How to change the location of checkbox input in a rtl direction page
body: <p>In the link you can see that I'm using a CSS rule - "direction: rtl;".</p>
  
  <p>All I'm trying to do is to move the plus(the one with the red border around it) to the left side of the tabs.</p>
  
  <p>The labels are fine but it seems I having hard time to move checkbox to the other side.</p>
  
  <p>I tried to change it's position also tried to float it to the left but it didn't worked.</p>
  
  <p>Does someone have an idea how can I achieve that?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>    body{
          direction: rtl;
      }
  
  
  /* Acordeon styles */
  .tab {
    position: relative;
    margin-bottom: 1px;
    width: 100%;
    color: #fff;
    overflow: hidden;
  }
  input[type=checkbox]{
    position: absolute;
    opacity: 0;
    z-index: -1;
  }
  
  .tab-content {
    max-height: 0;
    overflow: hidden;
    background: #1abc9c;
    transition: max-height .35s;
  }
  
  .tab-content p {
    margin: 1em;
  }
  /* :checked */
  input:checked ~ .tab-content {
    max-height: 10em;
  }
  /* Icon */
  label::after {
    position: absolute;
    right: 0;
    top: 0;
    display: block;
    width: 3em;
    height: 3em;
    line-height: 3;
    text-align: center;
    transition: all .35s;
  }
          
          
  input[type=checkbox] + label::after {
    content: "+";
     border: 1px solid #f00;
  }
  
  input[type=checkbox]:checked + label::after {
    transform: rotate(315deg);
  }
  
  input[type=checkbox] + label {
    position: relative;
    display: block;
    padding: 0 0 0 1em;
    background: #16a085;
    font-weight: bold;
    line-height: 3;
    cursor: pointer;
  }   </code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;meta name="viewport" content="width=device-width"&gt;
    &lt;title&gt;JS Bin&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div class="half"&gt;
      &lt;p&gt;Open &lt;strong&gt;multiple&lt;/strong&gt;&lt;/p&gt;
      &lt;div class="tab"&gt;
        &lt;input id="tab-one" type="checkbox" name="tabs"&gt;
        &lt;label for="tab-one"&gt;Label One&lt;/label&gt;
        &lt;div class="tab-content"&gt;
          &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur, architecto, explicabo perferendis nostrum, maxime impedit atque odit sunt pariatur illo obcaecati soluta molestias iure facere dolorum adipisci eum? Saepe, itaque.&lt;/p&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="tab"&gt;
        &lt;input id="tab-two" type="checkbox" name="tabs"&gt;
        &lt;label for="tab-two"&gt;Label Two&lt;/label&gt;
        &lt;div class="tab-content"&gt;
          &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur, architecto, explicabo perferendis nostrum, maxime impedit atque odit sunt pariatur illo obcaecati soluta molestias iure facere dolorum adipisci eum? Saepe, itaque.&lt;/p&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="tab"&gt;
        &lt;input id="tab-three" type="checkbox" name="tabs"&gt;
        &lt;label for="tab-three"&gt;Label Three&lt;/label&gt;
        &lt;div class="tab-content"&gt;
          &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur, architecto, explicabo perferendis nostrum, maxime impedit atque odit sunt pariatur illo obcaecati soluta molestias iure facere dolorum adipisci eum? Saepe, itaque.&lt;/p&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>