From the course: CSS: Combining Grid and Flexbox

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Form for mobile

Form for mobile

- [Instructor] Our form is looking pretty good at the small screen layout, but there are a few adjustments we can make to improve it even more. We'll be specifically focusing on the radio buttons. Instead of having them stacked vertically, we will have them display horizontally on one line and we're going to adjust the placement of the elements that are in our Submit button. We want these to be aligned in a more pleasing way. Let's jump into our code and get to it. We'll be focusing on the small screen. As usual, we always build mobile first. So let's go ahead and address the radio buttons to start off with. It is worth mentioning that the reason that the radio buttons are stacking is because they are wrapped inside of a label tag and we have already applied a display block to our label tags. This is allowing the label and radio button pairs to stack vertically on top of each other. To make these align horizontally and…

Contents