Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS Bootstrap 4 Basics (Retired) Building Forms with Bootstrap Custom Form Controls for Cross-Browser Consistency

hi there, my labels woth the checkboxes are overflowing the size of my form. I have given my code below

2 Answers

heyyy nagamani palamuthi .. I had the same problem too. What I did was I wrapped the whole form in a div container. It works out.

Ulrike Pechmann
Ulrike Pechmann
18,211 Points

This will work for 4.0.0-alpha.5

<div class="form-group">
  <div>
    <label class="custom-control custom-checkbox">
      <input type="checkbox" class="custom-control-input">
      <span class="custom-control-indicator"></span>
      <span class="custom-control-description"></span>
      Javascript frameworks
    </label>
  </div>
  <div>
    <label class="custom-control custom-checkbox">
      <input type="checkbox" class="custom-control-input">
      <span class="custom-control-indicator"></span>
      <span class="custom-control-description"></span>
      Javascript libraries
    </label>   
  </div>
  <div>
    <label class="custom-control custom-checkbox">
      <input type="checkbox" class="custom-control-input">
      <span class="custom-control-indicator"></span>
      <span class="custom-control-description"></span>
      Node.Js libraries
    </label>
  </div>
  <div>
     <label class="custom-control custom-checkbox">
      <input type="checkbox" class="custom-control-input">
      <span class="custom-control-indicator"></span>
      <span class="custom-control-description"></span>
      Build tools 
    </label>
  </div>
</div>