From the course: Building Responsive Forms with Flexbox
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Refining basic styling - CSS Flexbox Tutorial
From the course: Building Responsive Forms with Flexbox
Refining basic styling
- With our form now properly structured, we're going to turn our attention to styling it. Instead of styling the entire form as we did in the previous chapter, we're just going to refine the styling a little bit, so that we can then turn our attention to making our form responsive. Now in this case I'm working in the forms.htm file found in the 02-03 directory, and as you can see in the head of the document, there's already a good bit of form styling going on here. If we preview it in a browser, you can see we've already got the labels and form elements styled rather nicely, maybe not great, but not too bad. And most everything looks okay. You'll notice the Submit button looks very familiar from the previous chapter. So we're using a lot of the same consistent type of styling. The first thing I'm going to do is go up to the very top of my styles, and I'm going to add a style for the entire form, to control the line height. So I'm just going to type in register-form and inside that I'm…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Longer form structure4m 13s
-
(Locked)
Sectioning form content5m 45s
-
(Locked)
Refining basic styling7m 11s
-
Creating responsive inputs and labels7m 41s
-
(Locked)
Creating responsive checkbox groups7m 47s
-
(Locked)
Making form sections responsive5m 31s
-
(Locked)
Controlling section spacing4m 34s
-
(Locked)
Adding media queries2m 39s
-
(Locked)
-