title: Use of float command when language changes in css
body: <p>I have an issue that when language changes the all elements changes direction from <code>ltr</code> to <code>rtl</code> and float command also changed from left to right direction.
  is there any way that <code>ltr</code> changes but float stay right?
  please view images below</p>
  
  <p><a href="https://i.stack.imgur.com/1i2SD.jpg" rel="nofollow noreferrer">when float left</a></p>
  
  <p><a href="https://i.stack.imgur.com/zM6kN.jpg" rel="nofollow noreferrer">when float right</a></p>
  
  <p>the original language is English which is set as dir="ltr" but Arabic set as "rtl" and these elements appear as rtl when floated in Arabic, so how can I fix it?</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>.flip-clock-divider {
    float: left;
    display: inline-block;
    position: relative;
    width: 6px;
    height: 50px;
  }
  
  .flip-clock-wrapper ul {
    position: relative;
    float: right;
    margin: 1px;
    width: 30px;
    height: 50px;
    font-size: 30px;
    font-weight: bold;
    line-height: 50px;
    border-radius: 5px;
    background: #d3d3d3;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html dir="rtl" lang="ar"&gt;
  &lt;div id="ab__deal_of_the_day_141" class="flip-clock-wrapper"&gt;
    &lt;span class="flip-clock-divider days"&gt;&lt;span class="flip-clock-label"&gt;days&lt;/span&gt;&lt;/span&gt;
    &lt;ul class="flip "&gt;
      &lt;li class="flip-clock-before"&gt;
        &lt;a href="#"&gt;
          &lt;div class="up"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;2&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="down"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;2&lt;/div&gt;
          &lt;/div&gt;
        &lt;/a&gt;
      &lt;/li&gt;
      &lt;li class="flip-clock-active"&gt;
        &lt;a href="#"&gt;
          &lt;div class="up"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;3&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="down"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;3&lt;/div&gt;
          &lt;/div&gt;
        &lt;/a&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
    &lt;ul class="flip "&gt;
      &lt;li class="flip-clock-before"&gt;
        &lt;a href="#"&gt;
          &lt;div class="up"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;7&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="down"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;7&lt;/div&gt;
          &lt;/div&gt;
        &lt;/a&gt;
      &lt;/li&gt;
      &lt;li class="flip-clock-active"&gt;
        &lt;a href="#"&gt;
          &lt;div class="up"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;8&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="down"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;8&lt;/div&gt;
          &lt;/div&gt;
        &lt;/a&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
    &lt;span class="flip-clock-divider hours"&gt;&lt;span class="flip-clock-label"&gt;hours&lt;/span&gt;&lt;span class="flip-clock-dot top"&gt;&lt;/span&gt;&lt;span class="flip-clock-dot bottom"&gt;&lt;/span&gt;&lt;/span&gt;
    &lt;ul class="flip "&gt;
      &lt;li class="flip-clock-before"&gt;
        &lt;a href="#"&gt;
          &lt;div class="up"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;1&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="down"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;1&lt;/div&gt;
          &lt;/div&gt;
        &lt;/a&gt;
      &lt;/li&gt;
      &lt;li class="flip-clock-active"&gt;
        &lt;a href="#"&gt;
          &lt;div class="up"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;1&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="down"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;1&lt;/div&gt;
          &lt;/div&gt;
        &lt;/a&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
    &lt;ul class="flip  play"&gt;
      &lt;li class="flip-clock-before"&gt;
        &lt;a href="#"&gt;
          &lt;div class="up"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;5&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="down"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;5&lt;/div&gt;
          &lt;/div&gt;
        &lt;/a&gt;
      &lt;/li&gt;
      &lt;li class="flip-clock-active"&gt;
        &lt;a href="#"&gt;
          &lt;div class="up"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;4&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="down"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;4&lt;/div&gt;
          &lt;/div&gt;
        &lt;/a&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
    &lt;span class="flip-clock-divider minutes"&gt;&lt;span class="flip-clock-label"&gt;minutes&lt;/span&gt;&lt;span class="flip-clock-dot top"&gt;&lt;/span&gt;&lt;span class="flip-clock-dot bottom"&gt;&lt;/span&gt;&lt;/span&gt;
    &lt;ul class="flip  play"&gt;
      &lt;li class="flip-clock-before"&gt;
        &lt;a href="#"&gt;
          &lt;div class="up"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;1&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="down"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;1&lt;/div&gt;
          &lt;/div&gt;
        &lt;/a&gt;
      &lt;/li&gt;
      &lt;li class="flip-clock-active"&gt;
        &lt;a href="#"&gt;
          &lt;div class="up"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;0&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="down"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;0&lt;/div&gt;
          &lt;/div&gt;
        &lt;/a&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
    &lt;ul class="flip  play"&gt;
      &lt;li class="flip-clock-before"&gt;
        &lt;a href="#"&gt;
          &lt;div class="up"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;1&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="down"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;1&lt;/div&gt;
          &lt;/div&gt;
        &lt;/a&gt;
      &lt;/li&gt;
      &lt;li class="flip-clock-active"&gt;
        &lt;a href="#"&gt;
          &lt;div class="up"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;0&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="down"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;0&lt;/div&gt;
          &lt;/div&gt;
        &lt;/a&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
    &lt;span class="flip-clock-divider seconds"&gt;&lt;span class="flip-clock-label"&gt;seconds&lt;/span&gt;&lt;span class="flip-clock-dot top"&gt;&lt;/span&gt;&lt;span class="flip-clock-dot bottom"&gt;&lt;/span&gt;&lt;/span&gt;
    &lt;ul class="flip  play"&gt;
      &lt;li class="flip-clock-before"&gt;
        &lt;a href="#"&gt;
          &lt;div class="up"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;3&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="down"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;3&lt;/div&gt;
          &lt;/div&gt;
        &lt;/a&gt;
      &lt;/li&gt;
      &lt;li class="flip-clock-active"&gt;
        &lt;a href="#"&gt;
          &lt;div class="up"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;2&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="down"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;2&lt;/div&gt;
          &lt;/div&gt;
        &lt;/a&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
    &lt;ul class="flip  play"&gt;
      &lt;li class="flip-clock-before"&gt;
        &lt;a href="#"&gt;
          &lt;div class="up"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;3&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="down"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;3&lt;/div&gt;
          &lt;/div&gt;
        &lt;/a&gt;
      &lt;/li&gt;
      &lt;li class="flip-clock-active"&gt;
        &lt;a href="#"&gt;
          &lt;div class="up"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;2&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="down"&gt;
            &lt;div class="shadow"&gt;&lt;/div&gt;
            &lt;div class="inn"&gt;2&lt;/div&gt;
          &lt;/div&gt;
        &lt;/a&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>is it possible to float it initial?</p>