html - How to align form inputs -
What is the best way to align form inputs next to labels
- The width of the label, as it looks very bad, if the label is very low, then specify the length (especially when using a Texter in the same form, it looks like this)
- 2 columns ( Inline divas or tables), for one label and for one input, because it is where the label and Input is on different lines
Check this Bela
& lt; Label class = "middle-inline" & gt; Label & lt; / Labels & gt; & Lt; Div class = "middle-inline" & gt; & Lt; Input type = "text" / & gt; & Lt; / Div & gt; @ Media only screen and (minimum-width: 30 AM) {. Media-inline {display: inline; }} @ Media only screen and (max-width: 30m) {. Media-inline {display: block; }}
What I have done is a display property to inline and block, respectively.
Comments
Post a Comment