title: How to center tabs in bootstrap4?
body: <p>I want to show my <code>login/Signup</code> tabs and their relative form in the middle of the page and also want to small textfileds like <code>col-md-12</code> to <code>col-md-4</code> but when I use <code>style="margin-left=200px;"</code> the form will be in the middle but in mobile mode it is not showing so I removed <code>style="margin-left=200px;"</code> </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>html,
  body {
    height: 100%;
  }
  
  body {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: #f5f5f5;
  }
  
  .form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
  }
  
  .form-signin .checkbox {
    font-weight: 400;
  }
  
  .form-signin .form-control {
    position: relative;
    box-sizing: border-box;
    height: auto;
    padding: 10px;
    font-size: 16px;
  }
  
  .form-signin .form-control:focus {
    z-index: 2;
  }
  
  .form-signin input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }
  
  .form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"&gt;&lt;/script&gt;
  
  &lt;div class="container"&gt;
    &lt;br&gt;
    &lt;h4 class="text-center"&gt;User Panel&lt;/h4&gt;
    &lt;hr&gt;
    &lt;!-- Nav tabs --&gt;
    &lt;ul class="nav nav-tabs form-signin" role="tablist"&gt;
      &lt;li class="nav-item"&gt;
        &lt;a class="nav-link active" data-toggle="tab" href="#home"&gt;Login&lt;/a&gt;
      &lt;/li&gt;
      &lt;li class="nav-item"&gt;
        &lt;a class="nav-link" data-toggle="tab" href="#menu2"&gt;SignUp&lt;/a&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  
    &lt;!-- Tab panes --&gt;
    &lt;div class="tab-content"&gt;
      &lt;div id="home" class="container tab-pane active"&gt;&lt;br&gt;
        &lt;form class="form-signin"&gt;
          &lt;img class="mb-4" src="https://camu.in/assets/img/avatar1.svg" alt="" width="72" height="72"&gt;
          &lt;h1 class="h3 mb-3 font-weight-normal"&gt;Please sign in&lt;/h1&gt;
          &lt;label for="inputEmail" class="sr-only"&gt;Email address&lt;/label&gt;
          &lt;input type="email" id="inputEmail" class="form-control" placeholder="Email address" required autofocus&gt;
          &lt;label for="inputPassword" class="sr-only"&gt;Password&lt;/label&gt;
          &lt;input type="password" id="inputPassword" class="form-control" placeholder="Password" required&gt;
          &lt;div class="checkbox mb-3"&gt;
            &lt;label&gt;
            &lt;input type="checkbox" value="remember-me"&gt; Remember me
          &lt;/label&gt;
          &lt;/div&gt;
          &lt;button class="btn btn-lg btn-primary btn-block" type="submit"&gt;Sign in&lt;/button&gt;
          &lt;p class="mt-5 mb-3 text-muted"&gt;&amp;copy; 2017-2018&lt;/p&gt;
        &lt;/form&gt;
      &lt;/div&gt;
  
      &lt;div id="menu2" class="container tab-pane fade"&gt;&lt;br&gt;
        &lt;p&gt;Signup&lt;/p&gt;
        &lt;form class="form-signin"&gt;
          &lt;img class="mb-4" src="https://camu.in/assets/img/avatar1.svg" alt="" width="72" height="72"&gt;
          &lt;h1 class="h3 mb-3 font-weight-normal"&gt;Please sign in&lt;/h1&gt;
          &lt;label for="inputEmail" class="sr-only"&gt;Email address&lt;/label&gt;
          &lt;input type="email" id="inputEmail" class="form-control" placeholder="Email address" required autofocus&gt;
          &lt;label for="inputPassword" class="sr-only"&gt;Password&lt;/label&gt;
          &lt;input type="password" id="inputPassword" class="form-control" placeholder="Password" required&gt;
          &lt;div class="checkbox mb-3"&gt;
            &lt;label&gt;
            &lt;input type="checkbox" value="remember-me"&gt; Remember me
          &lt;/label&gt;
          &lt;/div&gt;
          &lt;button class="btn btn-lg btn-primary btn-block" type="submit"&gt;Sign in&lt;/button&gt;
          &lt;p class="mt-5 mb-3 text-muted"&gt;&amp;copy; 2017-2018&lt;/p&gt;
        &lt;/form&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want to produce below output the tabs and form in the middle of the page but I am not able to do it. Kindly check below image what I want. Also when I click on <code>SignUp</code> everything is messed up.</p>
  
  <p><a href="https://i.stack.imgur.com/rnQIZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rnQIZ.png" alt="enter image description here"></a></p>