Start learning with our library of video tutorials taught by experts. Get started

Bootstrap 3: New Features and Migration

Updating your forms


From:

Bootstrap 3: New Features and Migration

with Ray Villalobos

Video: Updating your forms

The big thing about forms is that all form controls, including input, text area, and select element, are set to 100 width by default. So you can see the difference right here. You'll see that this field takes up the whole width of the container, whereas in the old version of Bootstrap, it would just default to a certain width. That's certainly more mobile friendly, so that's a great upgrade. Something you'll have to watch out for is that because all widths default to 100%, to use inline forms, you'll have to set the width of the form controls manually. One of the cool features of Bootstrap is the ability to create horizontal forms. Where the labels and fields are side by side.

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
Please wait...
Bootstrap 3: New Features and Migration
46m 57s Intermediate Aug 08, 2013

Viewers: in countries Watching now:

Bootstrap 3 is here, and it supports mobile design and responsive CSS better than ever. Join author Ray Villalobos for an overview of the new classes, mobile-first approach, and other enhancements in Bootstrap 3, and learn how to migrate your sites and files to the new framework. Find out about the new installation options, updates to grids and scaffolding, and changes to the handling of type, images, and JavaScript. Then learn to integrate the new list group and panel components into your workflow. The course closes with a look at migrating a sample site from Bootstrap 2.3 to 3.0, from replacing template files to tweaking your grid, navigation, and images.

Topics include:
  • Installing Bootstrap 3
  • Using the new grid systems
  • Working with typography
  • Understanding the responsive class updates
  • Using panels and list groups
  • Migrating from Bootstrap 2.3 to Bootstrap 3.0
Subjects:
Web Responsive Design Web Design Web Development
Software:
Bootstrap
Author:
Ray Villalobos

Updating your forms

The big thing about forms is that all form controls, including input, text area, and select element, are set to 100 width by default. So you can see the difference right here. You'll see that this field takes up the whole width of the container, whereas in the old version of Bootstrap, it would just default to a certain width. That's certainly more mobile friendly, so that's a great upgrade. Something you'll have to watch out for is that because all widths default to 100%, to use inline forms, you'll have to set the width of the form controls manually. One of the cool features of Bootstrap is the ability to create horizontal forms. Where the labels and fields are side by side.

In the new Bootstrap, this is treated like any other layout, so you create a form with a class of form-horizontal, and then you use the col, col-lg, and then a number, just like this right here. Now this is different than the old version of Bootstrap, where you used to create a series of control groups. This makes a lot more sense now but it's definitely different than before so it means that you should check the forms on your old Bootstrap website if you're upgrading. One thing that you'll notice throughout the Bootstrap upgrade is a series of warnings like this one right here. This one tells you, for example, that inputs will only be fully styled if they're type attribute is properly declared.

Now that used to be true of the old version of Bootstrap, but there was no warning, so you sort of found out about these kind of problems by trial and error, so it's nice to see them available by default on the documentation. Something else that changes is checkboxes and radio buttons. In the old version of Bootstrap, you used to define checkboxes by adding a check box class to your labels and wrapping your input fields. It's a bit different in the new version, you still wrap your input fields but you also wrap another separate div with the check box class. Inlining forms is also a bit different. Instead of two classes for checkbox and inline, you use a separate checkbox inline and checkbox radio class.

You can now disable not just an individual control, but also an entire field set. You have to be careful because this won't work in IE or Safari. The rest of the form changes in this section are pretty much the same things applied to other elements. Classes have been simplified and hyphenated, layouts are done with columns, and classes have been renamed. If you've been using a lot of the functionality in forms, you'll be doing a lot of updating when you upgrade.

There are currently no FAQs about Bootstrap 3: New Features and Migration.

Share a link to this course
Please wait... Please wait...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Bootstrap 3: New Features and Migration.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Welcome to the redesigned course page.

We’ve moved some things around, and now you can



Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked