Demo of Gravity Forms Adaptive Placeholders.
This shows use of both labels and placeholder.
Note label placed inline of input field.
The advantage here is that both labels and normal placeholder text fits in compact area, although slightly clutter.
Done entirely with CSS, this design only work with solid background and input fields.