Dev Dev - 6 months ago 9
iOS Question

........l........................

display:inline-block;
float:none;
/* reset the text-align */
text-align:center;
/* inline-block space fix */
margin-right:-4px;...........


...............................................................................................................................

Answer

CSS file:

   .contact {
        padding: 25px 0 450px 0;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        background: #EEEEEE;
    }

    .contact i {
        padding: 0 20px;
        font-size: 0.8em;
    }

    .contact h2 {
        font-family: 'Open Sans', sans-serif;
        font-size: 2.5em;
        border: 1px solid #555;
        background-color: rgba(0,0,0,0.6);
        padding-top: 20px;
        height: 75px;
        color: #fff;
        font-weight: 500;
        line-height: 40px;
        padding-left: 50px;
        text-align: center;
    }

    #comments {
        margin-top: 0;
    }

    #contactform {
        height: 150px;
    }

    #contactform .right {
        float: right;
    }

    #contactform input,
    #contactform textarea {
        margin-bottom: 14px;
        width: 100%;
        outline: none;
        border: none;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: 11px;
    }

    #contactform input {
        padding-left: 15px;
        height: 44px;
        border-radius: 0;
    }

    #contactform textarea {
        padding: 15px;
        height: 160px;
        border-radius: 0;
    }

    #contactform .btn {
        width: 100%;
        height: 50px;
        border-radius: 0;
        border: 1px solid #333;
        background: rgba(0,0,0,0.8);
        color: #fff;
    }

    #contactform .btn:hover {
        background: rgba(9,8,77,0.7);
    }

    #map-canvas {
        width: 100%;
        height: 135px;
        margin-bottom: 15px;
        border: 2px solid #fff;
    }
   body{
       background-color:#9E9E9E;
       }

HTML FILE:

   <div class="container">
        <div class="row">
           <div class="col-md-12">
        </div>
       </div>
        <div class="row">
           <form method="post" action="" name="contactform" id="contactform">
              <div class="col-md-6">
                <fieldset>
                    <input name="name" type="text" id="name" size="40" placeholder="Name">
                    <br>
                    <input name="email" type="text" id="email" size="30" placeholder="Email">
                    <br>
                    <input name="subject" type="text" id="phone" placeholder="Subject">
                   <br>
                </fieldset>
              </div>
            <div class="col-md-6">
                <fieldset>
                    <textarea name="message" cols="40" rows="20" id="comments" placeholder="Message"></textarea>
                </fieldset>
            </div>
            <div class="col-md-4 col-md-offset-4">
                <fieldset>
                    <button type="submit" name="submit" class="btn btn-lg" id="submit" value="Submit">Send Message</button>
                </fieldset>
            </div>
           </form>
          </div>
      </div>

ScreenShot: enter image description here