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

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -