css - Align multiple text label and input label in jQuery mobile -
I have a problem with jQuery mobile I want to align the text labels and input labels in the same line.
I tried this CSS:
.input-topic {float: left; Display: Inline-block; Padding-right: 10px; Padding-top: 15px; }. Input-content {display: block; Swim left; }. Input {height: 20px; }
and when I
& lt; For label = "LitNameInput" class = "input-topic" & gt; Name: & lt; / Label & gt; & Lt; Div class = "input-content" & gt; & Lt; Input type = "text" id = "LitNameInput" placeholder = "name alias" class = "input" & gt; & Lt; P style = "margin: 1px;" & Gt; & Lt; / P & gt; & Lt; / Div & gt;
This works if the screen is suitable with size, otherwise it shows a terrific result!
Here, so you can change the width of the results section to see what is happening.
Thanks for all the suggestions and solutions.
Do you want the name, telephone and email to be on the same line? I recommend using jQuery Mobile to provide responsive grid and fields. They are all fitted on the same row on the larger width but on smaller ones, they become stacked.
Check out jQuery Mobile: and (Scroll down in the Responsive Grid section if you want to stack the grid, in this case I would recommend)
Let me know that it helps.
Comments
Post a Comment