Link to home
Start Free TrialLog in
Avatar of Bob Schneider
Bob SchneiderFlag for United States of America

asked on

Horizontal Bootstrap Form Alignment

I am trying to add a label to form items in a site that was prepared for me by someone else.  I want the label to be inline with the input.  Below is what I have (with the label).  It is not aligning horizontally.  I don't want to change anything about the site's appearance except the label inline with the input.  How can I go about this please?
<form class="form-horizontal form-simple"  name="create_item" method="Post" 
                                            action="edit_items.asp?item_id=<%=lItemID%>">
                                        <fieldset class="form-group position-relative has-icon-left">
                                            <label for="item">Item</label>
                                            <input type="text" class="form-control" 
                                            name="item" id="item" value="<%=sItem%>" required="">
                                        </fieldset>



Open in new window

Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Is that one from Bootstrap 3?
<form class="form-inline">

Open in new window


https://getbootstrap.com/docs/3.4/css/#forms-inline
Avatar of Bob Schneider

ASKER

Not sure.  It is the basic template you created for me several years ago.  I thought horizontal was when the label and the input were on the same line and inline was everything on the same line.  No?

Nonetheless, I will give this a try.

If it's bootstrap 3 that may explain why I have had soo much trouble with DatePicker, or not?  I was assuming Bootstrap 4.
ASKER CERTIFIED SOLUTION
Avatar of lenamtl
lenamtl
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial