Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7861563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:47:01+00:00 2026-06-02T22:47:01+00:00

Heres my form: <div class=row> <form class=well form-inline span6 offset3> <select name=data[Number][country] id=NumberCountry> <option>Choose

  • 0

Heres my form:

<div class="row">

<form class="well form-inline span6 offset3">

    <select name="data[Number][country]" id="NumberCountry">
        <option>Choose a country code:</option>
        <option value="+44">+44</option>
        <option value="+81">+81</option>
        <option value="+1">+1</option>
        <option value="+70">+70</option>
    </select>   
    <input type="text" class="input-small span2" placeholder="eg. 7764">
    <input type="password" class="input-small span2" placeholder="eg. 123456">
    <button class="btn btn-large btn-primary">Activate Your SIM</button>

</form>


</div>

Heres a working example:

http://jsfiddle.net/pickledegg/aJfMx/6/

I’ve bodged it up using Bootstrap, but I’m trying to get a grasp on how the rows and spans should be used for ‘fine tuning’ the layout.

I want the button to be centralised and have some space above it. As you can see I’ve fudged some rows and span classes in there, but can someone show me the ‘best practice’ way of doing this? It will help me form a clearer picture of how to properly use this framework.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T22:47:04+00:00Added an answer on June 2, 2026 at 10:47 pm

    Just saw your reply, here is my take on your mockup.

    In order to properly layout your design, we first need to separate the sections into two rows, an input row and a row for your button, to do this we can rely on the .control-group class set by the bootstrap to contain each section. So with the .control-group class in place, your markup will look something like this:

    <div class="container">
    
     <div class="row">
         <form class="well form-inline span8 offset2 custom-form">    
            <div class="control-group">
                <div class="controls">
                    <select class="span4" name="data[Number][country]" id="NumberCountry">
                        <option>Choose a country code:</option>
                        <option value="+44">+44</option>
                        <option value="+81">+81</option>
                        <option value="+1">+1</option>
                        <option value="+70">+70</option>
                   </select>
                   <input type="text" class="input-small span2" placeholder="eg. 7764">
                   <input type="password" class="input-small span2" placeholder="eg. 123456">
                </div>
            </div>
            <div class="control-group">
                <div class="controls center">
                    <button class="btn btn-large btn-primary">Activate Your SIM</button>
                </div>
            </div>
        </form>
    </div>
    
    </div> <!-- /container -->
    

    This way you will have some margin set by the bootstrap on the input and button row and they will not stick together. I noticed that you are also including the responsive stylesheet in your design and that your setup sort of breaks upon window resize, also noticed the same on the bootstrap demo in the documentation so we have to work around that. For that goal, i created my own .custom-form class to properly space the input and button rows upon screen resize, this way your changes won’t affect other bootstrap elements you may have on your site. Created another class called .center to center your button on the form.

    .custom-form input[class*="span"] {
        width: 146px;
    }
    
    .center {
        text-align:center;
    }
    
    @media (max-width: 767px) {
        .custom-form input[class*="span"], select[class*="span"] {
            margin-bottom:10px;
            width:100%;       
        }
    }
    
    @media (min-width: 768px) and (max-width: 979px) {
        .custom-form.span8 {
            width:548px;
        }
    } 
    

    Demo: http://jsfiddle.net/aJfMx/8/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Each div with the class row is added upon request from the user, to
I am styling a series of form rows. Each row div has a fixed-width
My problem is with the below html <div class=editor-container> <div class=editor-row curFocus> <div class=editor-label>
Here is my site's body: (With twitter bootstrap 2.0) <div class=container> <div class=row-fluid style=text-align:
I have the following code <div id=header class=row> <ul id=topnav> <li> <a href=#>a</a> <span><a
Here's a basic view of what my html looks like: <form> <div id=part1> //
Here is my code i am using for custom search, <div id=cse-search-form style=width: 100%;>Loading</div>
<body> <form id=form1 runat=server> <div> <asp:Button ID=Button1 runat=server Text=Button /> <div id=div1>Click here</div> </div>
Ok, here's the condensed form. I have three main tables to draw data from:
Hi Stackoverflow people, I have trouble to render a crispy form with a class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.