I am trying to get this layout for different types of media, an example below.
Small screens:
+----------------------+
| LABEL |
+----------------------+
| TEXT INPUT |
+----------------------+
Middle screens:
+----------------------+----------------------+
| LABEL | TEXT INPUT |
+----------------------+----------------------+
So, I have this code:
<div class="row">
<div class="columns medium-2">
<label>
Label
</label>
</div>
<div class="columns medium-10">
<input type="text" />
</div>
</div>
Everything is fine, but for medium screens the label does not vertically align in the middle, nor does it align horizontally to the right. To achieve this, Foundation 5 has two special label classes: label.inlineand label.right, but I don't like these classes to be used for small screens either.
A possible solution that I already know, but searching for the best (css only):
<label class="visible-for-small-only">
Label
</label>
<label class="visible-for-medium-up right inline">
Label
</label>
- CSS Foundation inline right , , ?