From the course: Mastering Web Developer Interview Code

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

How would you use flexbox to control horizontal alignment?

How would you use flexbox to control horizontal alignment?

From the course: Mastering Web Developer Interview Code

How would you use flexbox to control horizontal alignment?

- [Instructor] Flexbox is one of the display properties and it makes single dimensional layout super easy. A good front end developers should be familiar with this technology and comfortable with how it works. So let's take a look at how it's used to control horizontal alignment and then practice that with an example that you may be asked to build during a coding test. So Flexbox is one of the available CSS display properties. There's several of them and this is just one of them. It's perfect for laying out simple dimensional content. There's a separate property called CSS grid, that is more complex for layouts but it doesn't have great browser support. Now, although Flexbox has a good browser support, depending on what browsers you're targeting the syntax can get a little bit complex because it's different for different versions of internet Explorer. So you should use something like post CSS to manage the conversion to…

Contents