In bootstrap, I am trying to achieve a design that groups two pieces of text (a label, A, and some content, B) by having them near each other, like so:
A (right-aligned) | B (left-aligned)
Using responsive layouts in bootstrap, this looks great until the grid is stacked on narrow windows. Then it becomes:
| A (right-aligned)
B (left-aligned) |
... and it looks as though the two are no longer related.
I would prefer that once stacked, the elements would be either both centered or both left-aligned.
I know that I can use the .visible-* and .hidden-* classes to fix this, but that feels like a hack. Is there a simple way to change text alignment in response to bootstrap stacking parts of the grid?