You can override the .pull-right class for float left when it appears after the rtl element.
Like this:
.rtl { direction: RTL; } .rtl .pull-right { float:left !important; }
And your div element:
<div id="div2" class="alert alert-info rtl"> ูุฐุง ูู ุจูุฏู ูุตู ุงูููู <span class="badge badge-info">122</span> <a class="btn btn-lg pull-right" style="padding:0;" data-toggle="collapse" data-target="#aaa"> <i class="glyphicon glyphicon-chevron-down twitp_toggleable_chevron"></i> </a> </div>
Here is FIDDLE
Alternatively, you can do this with javascript: (using the same code, just add javascript)
$(document).ready(function() { $('.pull-right').each(function() { if($(this).parent().css('direction') == 'rtl') $(this).attr('style', 'float:left !important'); }); });
Hope this helps.
source share