html - Bootstrap- How to use horizontal form layout with prepend text? -
I am trying to use a horizontal look layout like the following:
Enter email: [field] Enter the password: [prepend + field]
I was trying for one hour but there is no solution met. Please tell me how I can do this. I have tried:
& lt; Form Category = "Form-Horizontal" & gt; & Lt ;! - & lt; Span class = "offset2" & gt; Sign in to email & lt; / Span & gt; - & gt; & Lt; Div class = "control-group" & gt; & Lt; Div class = "control" & gt; & Lt; Span & gt; Welcome to my email & lt; / Span & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "control-group input-append" & gt; & Lt; Label = "emailid" class = "control-label" & gt; Email ID & lt; / Label & gt; Labels for & Lt; Div class = "control" & gt; & Lt; Input type = "text" / & gt; & Lt; Span class = "add-on" & gt; @ & Lt; / Span & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "control-group input-append" & gt; & Lt; Label = "passwd" class = "control-label" & gt; Password & lt; / Label & gt; & Lt; Div class = "control" & gt; & Lt; Input type = "password" /> & Lt; Span class = "add-on" & gt; *** & lt; / Span & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "control-group" & gt; & Lt; Div class = "control" & gt; & Lt; Label class = "checkbox" & gt; & Lt; Input type = "checkbox" /> Remember me & lt; / Labels & gt; & Lt; Button class = "btn" & gt; Sign in & lt; / Button & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Form & gt;
Looking for you.
You can use the CSS to add the difference between the form group:
.form-inline .form-group {margin-right: 10px; }
Comments
Post a Comment