html - How to align form inputs -



html - How to align form inputs -

what best way align form inputs next labels

without using fixed label width, looks bad if labels much shorted specified length (especially when using textarea in same form, looks very bad) without using 2 columns (as inline div or table), 1 labels , 1 inputs, break responsive layouts label , input on separate lines

check fiddle..link

<label class="medium-inline"> label </label> <div class="medium-inline"> <input type="text"/> </div> @media screen , (min-width: 30em) { .medium-inline{ display:inline; } } @media screen , (max-width: 30em) { .medium-inline{ display:block; } }

all did alter display property inline , block respectively.

html css alignment html-form html-input

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -