Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

217
Views
How to display checkbox at the same line with cols in vuejs and bootstrap

I am creating a form with VueJS and bootstrap. I have created a b-row that includes three cols, one for full name, secondly for Address and last a checkbox. But their cols should to display at the same line and secondly cols should to be full width 50% not separate from others. I am sharing my code also my screenshot.

 <b-form class="mt-3">
      <b-row>   
        <b-col cols="6">
          <b-form-group id="name" label="Full Name" label-for="name">
            <b-form-input
              id="name"
              type="text"
              placeholder="John Gonzales"
              v-model="user.name"
            ></b-form-input>
          </b-form-group>
        </b-col>
     
        <b-col cols="4">
        
            <b-form-group id="address" label="Address" label-for="Address">  
                <b-form-input id="" type="text" v-model="user.address" placeholder="Reter 43">  
                </b-form-input>
            </b-form-group>
          
        </b-col>
        <b-col cols="2">
              <b-form-checkbox
                   id="checkbox-1"
                   v-model="status"
                   name="checkbox-1"
                   value="accepted"
                   unchecked-value="not_accepted">
                   Use Google Location
        </b-form-checkbox>

        </b-col>
      </b-row>
      </b-form >
Also I am sharing screenshot as I said: enter image description here

Note: As you can see I have set in secondly col cols-4 to occupation space for checkbox but it isn't the right choice, I also used flex end for checkbox but doesn't work. My finally result should to be exactly by figma:enter image description here

Do you know any best practice how to display at the same line side by side.

Thanks in Advance.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!