html - Bootstrapped webpage has input disabled due to position:relative -


hello 1 simple annoying problem. managed use css , bootsatrap create responsive webpage wanted. however, when used position:relative input (text field) got disabled. idea why?

<div class="col-md-offset-2 col-md-8 text-center"> <div class="container-fluid">         <div id="logo">           <img class="img-responsive" src="uv.png">         </div>          <div class="login-form">           <h1>united volunteers</h1>                 <div class="form-group">             <label class="input-title">username</label>             <input type="text" class="form-input" placeholder="username">           </div>           <div class="form-group">             <label class="input-title">password</label>             <input type="password" class="form-input" placeholder="password">           </div>         </div>            </div> </div>   .login-form {     top:90px;     position:relative;     box-sizing: border-box;     margin: 25px auto;     margin-bottom:0px;     width: 100%;     max-width:400px;     background-color: white;     padding: 100px 50px 50px 50px;     box-shadow: 1px 5px 2px #330000;     z-index: -1; }  .form-input {     width: 100%;     display: block;     height: 35px;     padding: 6px 12px;     font-size: 12px;     font-family: sans-serif;     vertical-align: middle;     border: 1px solid #ccc;     border-radius: 4px;     background-color: #f2f2f2;     line-height: 1.5; } 

disabled text fields

this because of z-index: -1;. set negative value.

just make positive like:

.login-form {   z-index: 1; } 

or @ snippet below:

.login-form {      top:90px;      position:relative;      box-sizing: border-box;      margin: 25px auto;      margin-bottom:0px;      width: 100%;      max-width:400px;      background-color: white;      padding: 100px 50px 50px 50px;      box-shadow: 1px 5px 2px #330000;      z-index: 1;  }    .form-input {      width: 100%;      display: block;      height: 35px;      padding: 6px 12px;      font-size: 12px;      font-family: sans-serif;      vertical-align: middle;      border: 1px solid #ccc;      border-radius: 4px;      background-color: #f2f2f2;      line-height: 1.5;  }
<div class="col-md-offset-2 col-md-8 text-center">  <div class="container-fluid">          <div id="logo">            <img class="img-responsive" src="uv.png">          </div>            <div class="login-form">            <h1>united volunteers</h1>                  <div class="form-group">              <label class="input-title">username</label>              <input type="text" class="form-input" placeholder="username">            </div>            <div class="form-group">              <label class="input-title">password</label>              <input type="password" class="form-input" placeholder="password">            </div>          </div>             </div>  </div> 

hope helps!


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -