form-inline class of bootstrap 4 is displaying the controls in two rows in IE and Edge












-1















I have below markup in html using bootstrap 4 which is being displayed in single row while the same is getting broken into two in IE Edge



<form class="form-inline" style="margin-top:10px;">
<label for="text" class="mr-sm-2">HOUR</label>
input type="text" class="form-control mb-2 mr-sm-2" id="HOUR">
<label for="text" class="mr-sm-2">MINUTE</label>
<input type="text" class="form-control mb-2 mr-sm-2" id="MINUTE">
<label for="text" class="mr-sm-2">SECONDS</label>
<input type="text" class="form-control mb-2 mr-sm-2" id="SECONDS">

<div class="dropdown" style="margin-left:20px;">
<button type="button" id="AMPM" class="btn btn-primary dropdown-toggle" style="width:160px;" data-toggle="dropdown">
AM/PM
</button>
<div class="dropdown-menu" id="SelectAMPM">
<a class="dropdown-item" href="#">AM</a>
<a class="dropdown-item" href="#">PM</a>
</div>
</div>
</form>


How to display entire form in one row in Internet Explorer and Edge? What bootstrap 4 classes needs to be added?










share|improve this question





























    -1















    I have below markup in html using bootstrap 4 which is being displayed in single row while the same is getting broken into two in IE Edge



    <form class="form-inline" style="margin-top:10px;">
    <label for="text" class="mr-sm-2">HOUR</label>
    input type="text" class="form-control mb-2 mr-sm-2" id="HOUR">
    <label for="text" class="mr-sm-2">MINUTE</label>
    <input type="text" class="form-control mb-2 mr-sm-2" id="MINUTE">
    <label for="text" class="mr-sm-2">SECONDS</label>
    <input type="text" class="form-control mb-2 mr-sm-2" id="SECONDS">

    <div class="dropdown" style="margin-left:20px;">
    <button type="button" id="AMPM" class="btn btn-primary dropdown-toggle" style="width:160px;" data-toggle="dropdown">
    AM/PM
    </button>
    <div class="dropdown-menu" id="SelectAMPM">
    <a class="dropdown-item" href="#">AM</a>
    <a class="dropdown-item" href="#">PM</a>
    </div>
    </div>
    </form>


    How to display entire form in one row in Internet Explorer and Edge? What bootstrap 4 classes needs to be added?










    share|improve this question



























      -1












      -1








      -1








      I have below markup in html using bootstrap 4 which is being displayed in single row while the same is getting broken into two in IE Edge



      <form class="form-inline" style="margin-top:10px;">
      <label for="text" class="mr-sm-2">HOUR</label>
      input type="text" class="form-control mb-2 mr-sm-2" id="HOUR">
      <label for="text" class="mr-sm-2">MINUTE</label>
      <input type="text" class="form-control mb-2 mr-sm-2" id="MINUTE">
      <label for="text" class="mr-sm-2">SECONDS</label>
      <input type="text" class="form-control mb-2 mr-sm-2" id="SECONDS">

      <div class="dropdown" style="margin-left:20px;">
      <button type="button" id="AMPM" class="btn btn-primary dropdown-toggle" style="width:160px;" data-toggle="dropdown">
      AM/PM
      </button>
      <div class="dropdown-menu" id="SelectAMPM">
      <a class="dropdown-item" href="#">AM</a>
      <a class="dropdown-item" href="#">PM</a>
      </div>
      </div>
      </form>


      How to display entire form in one row in Internet Explorer and Edge? What bootstrap 4 classes needs to be added?










      share|improve this question
















      I have below markup in html using bootstrap 4 which is being displayed in single row while the same is getting broken into two in IE Edge



      <form class="form-inline" style="margin-top:10px;">
      <label for="text" class="mr-sm-2">HOUR</label>
      input type="text" class="form-control mb-2 mr-sm-2" id="HOUR">
      <label for="text" class="mr-sm-2">MINUTE</label>
      <input type="text" class="form-control mb-2 mr-sm-2" id="MINUTE">
      <label for="text" class="mr-sm-2">SECONDS</label>
      <input type="text" class="form-control mb-2 mr-sm-2" id="SECONDS">

      <div class="dropdown" style="margin-left:20px;">
      <button type="button" id="AMPM" class="btn btn-primary dropdown-toggle" style="width:160px;" data-toggle="dropdown">
      AM/PM
      </button>
      <div class="dropdown-menu" id="SelectAMPM">
      <a class="dropdown-item" href="#">AM</a>
      <a class="dropdown-item" href="#">PM</a>
      </div>
      </div>
      </form>


      How to display entire form in one row in Internet Explorer and Edge? What bootstrap 4 classes needs to be added?







      html twitter-bootstrap forms internet-explorer microsoft-edge






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 28 '18 at 17:25









      TylerH

      15.6k105167




      15.6k105167










      asked Nov 25 '18 at 9:21









      RAMRAM

      155




      155
























          1 Answer
          1






          active

          oldest

          votes


















          0














          I've tested your code on my side and the form shows in one row in latest Edge and IE.



          I wonder that what version of IE/Edge you've used to display two rows.



          Besides, I would like to tell that when you use inline attribute the field goes from horizontal to vertical due to not enough space/width. You could see this from the link:
          https://www.w3schools.com/bootstrap4/bootstrap_forms.asp



          I've modified parts of the style by using the class form-control.Maybe you could refer to.



          <form class="form-inline">
          <div class="form-group">
          <label for="text">HOUR</label>
          <input id="HOUR" class="form-control input-group-lg" type="text" />
          </div>
          <div class="form-group">
          <label for="text">MINUTE</label>
          <input id="MINUTE" class="form-control input-group-lg" type="text" />
          </div>
          <div class="form-group">
          <label for="text">SECONDS</label>
          <input id="SECONDS" class="form-control input-group-lg" type="text" />
          </div>
          <div class="form-group">
          <div class="dropdown" style="margin-left:20px;">
          <button type="button" id="AMPM" class="btn btn-primary dropdown-toggle" style="width:160px;" data-toggle="dropdown">
          AM/PM
          </button>
          <div class="dropdown-menu" id="SelectAMPM">
          <a class="dropdown-item" href="#">AM</a>
          <a class="dropdown-item" href="#">PM</a>
          </div>
          </div>
          </div>
          </form>


          the result in IE and Edge






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53466147%2fform-inline-class-of-bootstrap-4-is-displaying-the-controls-in-two-rows-in-ie-an%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I've tested your code on my side and the form shows in one row in latest Edge and IE.



            I wonder that what version of IE/Edge you've used to display two rows.



            Besides, I would like to tell that when you use inline attribute the field goes from horizontal to vertical due to not enough space/width. You could see this from the link:
            https://www.w3schools.com/bootstrap4/bootstrap_forms.asp



            I've modified parts of the style by using the class form-control.Maybe you could refer to.



            <form class="form-inline">
            <div class="form-group">
            <label for="text">HOUR</label>
            <input id="HOUR" class="form-control input-group-lg" type="text" />
            </div>
            <div class="form-group">
            <label for="text">MINUTE</label>
            <input id="MINUTE" class="form-control input-group-lg" type="text" />
            </div>
            <div class="form-group">
            <label for="text">SECONDS</label>
            <input id="SECONDS" class="form-control input-group-lg" type="text" />
            </div>
            <div class="form-group">
            <div class="dropdown" style="margin-left:20px;">
            <button type="button" id="AMPM" class="btn btn-primary dropdown-toggle" style="width:160px;" data-toggle="dropdown">
            AM/PM
            </button>
            <div class="dropdown-menu" id="SelectAMPM">
            <a class="dropdown-item" href="#">AM</a>
            <a class="dropdown-item" href="#">PM</a>
            </div>
            </div>
            </div>
            </form>


            the result in IE and Edge






            share|improve this answer




























              0














              I've tested your code on my side and the form shows in one row in latest Edge and IE.



              I wonder that what version of IE/Edge you've used to display two rows.



              Besides, I would like to tell that when you use inline attribute the field goes from horizontal to vertical due to not enough space/width. You could see this from the link:
              https://www.w3schools.com/bootstrap4/bootstrap_forms.asp



              I've modified parts of the style by using the class form-control.Maybe you could refer to.



              <form class="form-inline">
              <div class="form-group">
              <label for="text">HOUR</label>
              <input id="HOUR" class="form-control input-group-lg" type="text" />
              </div>
              <div class="form-group">
              <label for="text">MINUTE</label>
              <input id="MINUTE" class="form-control input-group-lg" type="text" />
              </div>
              <div class="form-group">
              <label for="text">SECONDS</label>
              <input id="SECONDS" class="form-control input-group-lg" type="text" />
              </div>
              <div class="form-group">
              <div class="dropdown" style="margin-left:20px;">
              <button type="button" id="AMPM" class="btn btn-primary dropdown-toggle" style="width:160px;" data-toggle="dropdown">
              AM/PM
              </button>
              <div class="dropdown-menu" id="SelectAMPM">
              <a class="dropdown-item" href="#">AM</a>
              <a class="dropdown-item" href="#">PM</a>
              </div>
              </div>
              </div>
              </form>


              the result in IE and Edge






              share|improve this answer


























                0












                0








                0







                I've tested your code on my side and the form shows in one row in latest Edge and IE.



                I wonder that what version of IE/Edge you've used to display two rows.



                Besides, I would like to tell that when you use inline attribute the field goes from horizontal to vertical due to not enough space/width. You could see this from the link:
                https://www.w3schools.com/bootstrap4/bootstrap_forms.asp



                I've modified parts of the style by using the class form-control.Maybe you could refer to.



                <form class="form-inline">
                <div class="form-group">
                <label for="text">HOUR</label>
                <input id="HOUR" class="form-control input-group-lg" type="text" />
                </div>
                <div class="form-group">
                <label for="text">MINUTE</label>
                <input id="MINUTE" class="form-control input-group-lg" type="text" />
                </div>
                <div class="form-group">
                <label for="text">SECONDS</label>
                <input id="SECONDS" class="form-control input-group-lg" type="text" />
                </div>
                <div class="form-group">
                <div class="dropdown" style="margin-left:20px;">
                <button type="button" id="AMPM" class="btn btn-primary dropdown-toggle" style="width:160px;" data-toggle="dropdown">
                AM/PM
                </button>
                <div class="dropdown-menu" id="SelectAMPM">
                <a class="dropdown-item" href="#">AM</a>
                <a class="dropdown-item" href="#">PM</a>
                </div>
                </div>
                </div>
                </form>


                the result in IE and Edge






                share|improve this answer













                I've tested your code on my side and the form shows in one row in latest Edge and IE.



                I wonder that what version of IE/Edge you've used to display two rows.



                Besides, I would like to tell that when you use inline attribute the field goes from horizontal to vertical due to not enough space/width. You could see this from the link:
                https://www.w3schools.com/bootstrap4/bootstrap_forms.asp



                I've modified parts of the style by using the class form-control.Maybe you could refer to.



                <form class="form-inline">
                <div class="form-group">
                <label for="text">HOUR</label>
                <input id="HOUR" class="form-control input-group-lg" type="text" />
                </div>
                <div class="form-group">
                <label for="text">MINUTE</label>
                <input id="MINUTE" class="form-control input-group-lg" type="text" />
                </div>
                <div class="form-group">
                <label for="text">SECONDS</label>
                <input id="SECONDS" class="form-control input-group-lg" type="text" />
                </div>
                <div class="form-group">
                <div class="dropdown" style="margin-left:20px;">
                <button type="button" id="AMPM" class="btn btn-primary dropdown-toggle" style="width:160px;" data-toggle="dropdown">
                AM/PM
                </button>
                <div class="dropdown-menu" id="SelectAMPM">
                <a class="dropdown-item" href="#">AM</a>
                <a class="dropdown-item" href="#">PM</a>
                </div>
                </div>
                </div>
                </form>


                the result in IE and Edge







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 27 '18 at 1:43









                Jenifer JiangJenifer Jiang

                1164




                1164






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53466147%2fform-inline-class-of-bootstrap-4-is-displaying-the-controls-in-two-rows-in-ie-an%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

                    Calculate evaluation metrics using cross_val_predict sklearn

                    Insert data from modal to MySQL (multiple modal on website)