课程: Mastering Web Developer Interview Code

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

How would you use flexbox to control horizontal alignment?

How would you use flexbox to control horizontal alignment?

课程: 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…

内容