bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

In 2.0 pull-right doesn't work with responsive included

Open rahulsom opened this issue 14 years ago • 2 comments

I have a span which looks like

<span class="span2 pull-right">...</span>

It does not go to the right side. From what I see in the Dev tools on Chrome and equivalent on other browsers, bootstrap-responsive.css overrides the float in [class*="span"].

rahulsom avatar Feb 08 '12 22:02 rahulsom

Right now, you cannot mix the .pull-right and .span* classes like that. To get around it, however, you can redeclare the .pull-right class after the responsive CSS to give it more specificity and thus override the unfloating.

mdo avatar Feb 12 '12 23:02 mdo

Here is a proposed fix for this issue:

Add this to your .css

// from 768px upwards:
@media (min-width: 768px) {
.pull-right { float: right; }
}

elflo avatar May 04 '12 15:05 elflo